readUint16 method Null safety

int readUint16(
  1. [Endian? endian]
)

Implementation

int readUint16([Endian? endian]) {
  _init(2);
  final value = _data.getUint16(_offset, endian ?? this.endian);
  _offset += 2;
  return value;
}