reset method

  1. @override
void reset()

Resets the ErrorBoundary to a non-error state.

This can be called manually on the component instance using a ref - or by passing in a new child instance after a child has thrown an error.

Implementation

@override
void reset() {
  setState(initialState);
}