getUint16 method

int getUint16(
  1. int index, [
  2. Endian? endian
])

Reads the next 2 bytes at index (inclusive) and returns the value. endian defaults to Endian.big.

Implementation

int getUint16(int index, [Endian? endian]) =>
    getByteData(index, 2).getUint16(0, endian ?? kEndianness);