Uint8List i16ToBytes(int value) { return Uint8List(2)..buffer.asByteData().setUint16(0, value, Endian.big); }