ContiguousSparseList<T> constructor

ContiguousSparseList<T>({
  1. int preallocateSize = _defaultPreallocateSize,
  2. int growStep = _defaultGrowStep,
})

Implementation

ContiguousSparseList({
  int preallocateSize = _defaultPreallocateSize,
  int growStep = _defaultGrowStep,
}) : _growStep = growStep {
  _data = List<T?>.filled(preallocateSize, null, growable: false);
  _indices = Set<int>.identity();
}