reset method
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);
}