ByteArray.u16 constructor
ByteArray.u16(
- int value
Init ByteArray from uint16 value.
Implementation
factory ByteArray.u16(int value) =>
ByteArray._fromByteData(ByteData(2)..setUint16(0, value, Endian.little));