widgetDidUpdate method

  1. @override
void widgetDidUpdate(
  1. T oldWidget
)
override

Called after the widget is updated. Use this to initialize the new widget.

Implementation

@override
void widgetDidUpdate(final T oldWidget) {
  super.widgetDidUpdate(oldWidget);
  initializeElement();
}