dispose method

void dispose()

Return the original handlers.

Implementation

void dispose() {
  // Restore the error widget routine.
  if (_oldBuilder != null) {
    ErrorWidget.builder = _oldBuilder!;
  }
  // Return the original error routine.
  if (_oldOnError != null) {
    FlutterError.onError = _oldOnError;
  }
}