clear static method

void clear()

Clear all registrations (use in tests only).

Implementation

static void clear() {
  final wasNotEmpty =
      _byType.isNotEmpty ||
      _byString.isNotEmpty ||
      _byNormalizedString.isNotEmpty;
  _byType.clear();
  _byString.clear();
  _byNormalizedString.clear();
  if (wasNotEmpty) _bumpGeneration();
}