debugSubtreeNeedsAddToScene property

  1. @visibleForTesting
bool? get debugSubtreeNeedsAddToScene

Whether this or any descendant layer in the subtree needs addToScene.

This is for debug and test purpose only. It only becomes valid after calling updateSubtreeNeedsAddToScene.

Implementation

@visibleForTesting
bool? get debugSubtreeNeedsAddToScene {
  bool? result;
  assert(() {
    result = _needsAddToScene;
    return true;
  }());
  return result;
}