toStringShort method Null safety

  1. @override
String toStringShort()
inherited

A short, textual description of this widget.

Implementation

@override
String toStringShort() {
  final String type = objectRuntimeType(this, 'Widget');
  return key == null ? type : '$type-$key';
}