reset method

bool reset()

Reset the Error Handler and such.

Implementation

bool reset() {
  if (_oldBuilder != null) {
    ErrorWidget.builder = _oldBuilder!;
  }
  if (_oldOnError != null) {
    FlutterError.onError = _oldOnError;
  }
  return _oldBuilder != null && _oldOnError != null;
}