disposeAll method
void
disposeAll()
Disposes every object this pool currently holds — free and active alike — and empties it. For tearing the pool down entirely (e.g. a game session ending), not for routine reuse.
Implementation
void disposeAll() {
for (final item in _free) {
_dispose?.call(item);
}
_free.clear();
for (final item in _active) {
_dispose?.call(item);
}
_active.clear();
}