resizePool method
void
resizePool()
Implementation
void resizePool() {
final int oldCapacity = this.desiredCapacity;
this.desiredCapacity *= 2;
List<Object?> temp =
List.filled(this.desiredCapacity, null, growable: false);
for (int i = 0; i < oldCapacity; i++) {
temp[i] = this.objects[i];
}
this.objects = temp;
}