dispose static method

Future<void> dispose()

Stops listening (tests, or an app that never needs network state again).

Implementation

static Future<void> dispose() async {
  _grace?.cancel();
  _web?.call();
  _web = null;
  await _native?.cancel();
  _native = null;
  _init = null;
}