ensureCapacity method

void ensureCapacity(
  1. int n
)

Grows storage to hold at least n elements, keeping the first length bit-exact.

Implementation

void ensureCapacity(int n) {
  if (n <= _storage.length) return;
  storage = Float32List(n)..setRange(0, length, _storage);
}