debugNeedsCompositedLayerUpdate property

bool get debugNeedsCompositedLayerUpdate
inherited

Whether this render object's layer 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. Always returns false in non-debug builds.

It is intended to be used by tests and asserts.

Implementation

bool get debugNeedsCompositedLayerUpdate {
  if (!kDebugMode) {
    return false;
  }
  return _needsCompositedLayerUpdate;
}