uInt16ToBytes method

Uint8List uInt16ToBytes()

Converts this as a Uint16 to bytes (Uint8List).

Implementation

Uint8List uInt16ToBytes() =>
    Uint8List(2)..asByteData().setUint16(0, this, Endian.big);