toStringShort method

  1. @override
String toStringShort()
override

A short, textual description of this widget.

Implementation

@override
String toStringShort() {
  final String type;
  if (width == double.infinity && height == double.infinity) {
    type = '${objectRuntimeType(this, 'SizedBox')}.expand';
  } else if (width == 0.0 && height == 0.0) {
    type = '${objectRuntimeType(this, 'SizedBox')}.shrink';
  } else {
    type = objectRuntimeType(this, 'SizedBox');
  }
  return key == null ? type : '$type-$key';
}