toListOfInt32 method

List<int> toListOfInt32()

Converts this bytes to a List of Int32.

Implementation

List<int> toListOfInt32() {
  final byteData = asByteData();
  return List<int>.generate(length ~/ 4, (i) => byteData.getInt32(i * 4));
}