debugNeedsLayout property

bool debugNeedsLayout

Whether this render object's layout information is dirty.

This is only set in debug mode. In general, render objects should not need to condition their runtime behavior on whether they are dirty or not, since they should only be marked dirty immediately prior to being laid out and painted.

It is intended to be used by tests and asserts.

Implementation

bool get debugNeedsLayout {
  bool result;
  assert(() {
    result = _needsLayout;
    return true;
  }());
  return result;
}