parentChanged method

  1. @override
void parentChanged(
  1. ContainerComponent from,
  2. ContainerComponent to
)
inherited

Implementation

@override
void parentChanged(ContainerComponent from, ContainerComponent to) {
  super.parentChanged(from, to);
  if (parent is ShapePaintContainer) {
    _shapePaintContainer = parent as ShapePaintContainer;
    _initMutator();
  } else {
    _shapePaintContainer = null;
  }
}