resetForTesting static method

  1. @visibleForTesting
Future<void> resetForTesting()

Clears only registrations created by the SDK. Intended for tests and host-controlled teardown; consumer-owned pre-existing services survive.

Implementation

@visibleForTesting
static Future<void> resetForTesting() async {
  for (final dispose in _owned.reversed) {
    await dispose();
  }
  _owned.clear();
  _result = null;
  _pending = null;
  NeonTheme.dark = false;
  NeonTheme.colorBlindSafe = false;
}