clear static method
- @visibleForTesting
use this function for testing in your setUp or tearDown
Implementation
@visibleForTesting
static void clear() {
for (final e in _instance.elements.values) {
e.ref.dispose();
}
for (final creator in _instance._overriddenCreators.values) {
creator.resetCreator();
}
_instance._overriddenCreators.clear();
_instance.elements.clear();
}