expand method
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;
}
Expand the existing pool by the given count.
void expand(int count) {
for (var i = 0; i < count; i++) {
final item = builder();
item._pool = this;
_pool.addLast(item);
}
_count += count;
}