toListOfInt16 method

List<int> toListOfInt16()

Converts this bytes to a List of Int16.

Implementation

List<int> toListOfInt16() {
  final byteData = asByteData();
  return List<int>.generate(length ~/ 2, (i) => byteData.getInt16(i * 2));
}