widgetWillUpdate method

void widgetWillUpdate(
  1. T newWidget
)

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

Implementation

void widgetWillUpdate(final T newWidget) {
  widget.ref?._currentNode = null;
}