toStringShort method Null safety
override
Returns a human understandable name.
Implementation
@override
String toStringShort() {
String header = describeIdentity(this);
if (!kReleaseMode) {
if (_debugDisposed) {
header += ' DISPOSED';
return header;
}
if (_relayoutBoundary != null && _relayoutBoundary != this) {
int count = 1;
RenderObject? target = parent as RenderObject?;
while (target != null && target != _relayoutBoundary) {
target = target.parent as RenderObject?;
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;
}