toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

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