getInt32List method Null safety

Int32List getInt32List(
  1. int length
)

Reads the given number of Int32s from the buffer.

Implementation

Int32List getInt32List(int length) {
  _alignTo(4);
  final Int32List list = data.buffer.asInt32List(data.offsetInBytes + _position, length);
  _position += 4 * length;
  return list;
}