uninstall static method

void uninstall()

Restore the pre-install overrides. Safe to call when the guard is not active (and when it was never installed).

Implementation

static void uninstall() {
  if (!_active) return;
  IOOverrides.global = _savedIO;
  HttpOverrides.global = _savedHttp;
  _savedIO = null;
  _savedHttp = null;
  _lanes = const [];
  _approved.clear();
  _active = false;
}