readInt16 method Null safety

int readInt16(
  1. [Endian? endian]
)

Implementation

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