dropChild method Null safety

  1. @override
void dropChild(
  1. covariant Layer child
)
override

Disconnect the given node from this node.

Subclasses should call this function when they lose a child.

Implementation

@override
void dropChild(Layer child) {
  assert(!_debugMutationsLocked);
  if (!alwaysNeedsAddToScene) {
    markNeedsAddToScene();
  }
  if (child._compositionCallbackCount != 0) {
    _updateSubtreeCompositionObserverCount(-child._compositionCallbackCount);
  }
  super.dropChild(child);
}