int16ToBytes method

Uint8List int16ToBytes()

Converts this as a Int16 to bytes (Uint8List).

Implementation

Uint8List int16ToBytes() =>
    Uint8List(2)..asByteData().setInt16(0, this, Endian.big);