debugFillDescription method

  1. @protected
  2. @mustCallSuper
void debugFillDescription(
  1. List<String> description
)

Add additional information to the given description for use by toString.

Implementation

@protected
@mustCallSuper
void debugFillDescription(List<String> description) {
  try {
    final int? children = estimatedChildCount;
    if (children != null) {
      description.add('estimated child count: $children');
    }
  } catch (e) {
    // The exception is forwarded to widget inspector.
    description.add('estimated child count: EXCEPTION (${e.runtimeType})');
  }
}