dropChild method Null safety
- 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);
}