dropChild method

  1. @override
void dropChild(
  1. RenderObject child
)
inherited

Called by subclasses when they decide a render object is no longer a child.

Only for use by subclasses when changing their child lists. Calling this in other cases will lead to an inconsistent tree and probably cause crashes.

Implementation

@override
void dropChild(RenderObject child) {
  if (child is ChartAreaUpdateMixin) {
    child._onScheduleUpdate = null;
    child._onScheduleLegendUpdate = null;
  }
  super.dropChild(child);
}