childRemoved method Null safety

  1. @override
void childRemoved(
  1. Component child
)
inherited

Implementation

@override
void childRemoved(Component child) {
  super.childRemoved(child);
  // Make sure to clean up any references so that they can be garbage
  // collected.
  if (child is ShapePaintMutator &&
      _paintMutator == child as ShapePaintMutator) {
    _changeMutator(null);
  }
}