getUint16 method Null safety

int getUint16(
  1. {Endian? endian}
)

Reads a Uint16 from the buffer.

Implementation

int getUint16({Endian? endian}) {
  final int value = data.getUint16(_position, endian ?? Endian.host);
  _position += 2;
  return value;
}