reset method
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
void reset() {
_resetInternalErrorTracking();
setState(newState()
..hasError = false
..showFallbackUIOnError = props.fallbackUIRenderer != null
);
}