ByteArray.i16 constructor

ByteArray.i16(
  1. int value
)

Init ByteArray from int16 value.

Implementation

factory ByteArray.i16(int value) =>
    ByteArray._fromByteData(ByteData(2)..setUint16(0, value, Endian.little));