expand method
void
expand(
- T dummyItem
The size of the pool will expand with incrementSize amount of
CollisionProspects that are initially populated with two dummyItem
s.
Implementation
void expand(T dummyItem) {
for (var i = 0; i < incrementSize; i++) {
_storage.add(CollisionProspect<T>(dummyItem, dummyItem));
}
}