toStringShort method

  1. @override
String toStringShort ()
override

Returns a human understandable name.

Implementation

@override
String toStringShort() {
  String header = describeIdentity(this);
  if (_relayoutBoundary != null && _relayoutBoundary != this) {
    int count = 1;
    RenderObject target = parent;
    while (target != null && target != _relayoutBoundary) {
      target = target.parent;
      count += 1;
    }
    header += ' relayoutBoundary=up$count';
  }
  if (_needsLayout)
    header += ' NEEDS-LAYOUT';
  if (_needsPaint)
    header += ' NEEDS-PAINT';
  if (_needsCompositingBitsUpdate)
    header += ' NEEDS-COMPOSITING-BITS-UPDATE';
  if (!attached)
    header += ' DETACHED';
  return header;
}