toStringShort method

  1. @override
String toStringShort()
override

A short, textual description of this widget.

Implementation

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