BaseStructPool constructor
BaseStructPool({
- required int capacity,
Constructs a BaseStructPool with the given capacity.
capacity
: The number of structs the pool can hold.
Implementation
BaseStructPool({required int capacity})
: _capacity = capacity,
_used = List.filled(capacity, false);