toListOfUint16 method

List<int> toListOfUint16()

Converts this bytes to a List of Uint16.

Implementation

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