resetForTesting static method

Future<void> resetForTesting()

Forgets everything, for a test.

Implementation

static Future<void> resetForTesting() async {
  _retry?.cancel();
  _retry = null;
  await _reachability?.cancel();
  _reachability = null;
  await idle;
  _builders.clear();
  _stores.clear();
  _openDatabase = null;
  _database = null;
  _send = null;
  _canReach = () => true;
  _nextRetry = null;
  _again = false;
}