debugMarkClean method

  1. @visibleForTesting
void debugMarkClean()

Mark that this layer is in sync with engine.

This is for debugging and testing purposes only. In release builds this method has no effect.

Implementation

@visibleForTesting
void debugMarkClean() {
  assert(!_debugMutationsLocked);
  assert(() {
    _needsAddToScene = false;
    return true;
  }());
}