allocate method

int allocate()

Implementation

int allocate() {
  if (lastIndex >= data.length) {
    Float32List newData = Float32List(data.length * 2);
    newData.setAll(0, data);
    data = newData;
  }
  _count++;
  return _count - 1;
}