resetForTests static method

  1. @visibleForTesting
void resetForTests()

Resets internal state between tests. Does nothing if asserts are disabled.

Implementation

@visibleForTesting
static void resetForTests() {
  assert(() {
    _actions.clear();
    _ids.clear();
    _nextId = 0;
    return true;
  }());
}