reset method Null safety

  1. @mustCallSuper
void reset(
  1. State<StatefulWidget> state
)

Resets for a new build.

Implementation

@mustCallSuper
void reset(State state) {
  _dispose();

  _anchorRegistry = AnchorRegistry();

  final widget = state.widget;
  _widget = widget is HtmlWidget ? widget : null;
}