expand method

void expand(
  1. T dummyItem
)

The size of the pool will expand with incrementSize amount of CollisionProspects that are initially populated with two dummyItems.

Implementation

void expand(T dummyItem) {
  for (var i = 0; i < incrementSize; i++) {
    _storage.add(CollisionProspect<T>(dummyItem, dummyItem));
  }
}