expand method

void expand(
  1. int count
)

Expand the existing pool by the given count.

Implementation

void expand(int count) {
  for (var i = 0; i < count; i++) {
    final item = builder();
    item._pool = this;
    _pool.addLast(item);
  }
  _count += count;
}