toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  if (isUniform)
    return '$runtimeType.all($top)';
  final List<String> arguments = <String>[];
  if (top != BorderSide.none)
    arguments.add('top: $top');
  if (right != BorderSide.none)
    arguments.add('right: $right');
  if (bottom != BorderSide.none)
    arguments.add('bottom: $bottom');
  if (left != BorderSide.none)
    arguments.add('left: $left');
  return '$runtimeType(${arguments.join(", ")})';
}