toString method

  1. @override
String toString ()
override

Returns a string representation of this object.

Implementation

@override
String toString() {
  final List<String> properties = <String>[];
  properties.add('$image');
  if (colorFilter != null)
    properties.add('$colorFilter');
  if (fit != null &&
      !(fit == BoxFit.fill && centerSlice != null) &&
      !(fit == BoxFit.scaleDown && centerSlice == null))
    properties.add('$fit');
  properties.add('$alignment');
  if (centerSlice != null)
    properties.add('centerSlice: $centerSlice');
  if (repeat != ImageRepeat.noRepeat)
    properties.add('$repeat');
  if (matchTextDirection)
    properties.add('match text direction');
  return '$runtimeType(${properties.join(", ")})';
}