StringPoolUtils constructor

StringPoolUtils({
  1. int? maxSize,
})

Creates a string pool. Pass maxSize to bound the pool with FIFO eviction; omit it for unbounded pooling.

Implementation

StringPoolUtils({int? maxSize})
  : _maxSize = maxSize,
    _order = maxSize != null ? <String>[] : null;