widgetWillUpdate method

  1. @override
void widgetWillUpdate(
  1. T newWidget
)
override

Called before the widget is updated. Use this to remove references to the previous widget.

Implementation

@override
void widgetWillUpdate(final T newWidget) {
  disposeElement();
  super.widgetWillUpdate(newWidget);
}