uninstall method

void uninstall()

Removes the capture hooks. After calling this, new print calls and Flutter errors are no longer captured.

Implementation

void uninstall() {
  if (!_installed) return;
  _installed = false;
  FlutterError.onError = _previousErrorHandler;
  _previousErrorHandler = null;
}