getFloat32List method Null safety

Float32List getFloat32List(
  1. int length
)

Reads the given number of Float32s from the buffer

Implementation

Float32List getFloat32List(int length) {
  _alignTo(4);
  final Float32List list = data.buffer.asFloat32List(data.offsetInBytes + _position, length);
  _position += 4 * length;
  return list;
}