ByteArray.i32 constructor

ByteArray.i32(
  1. int value
)

Init ByteArray from int32 value.

Implementation

factory ByteArray.i32(int value) =>
    ByteArray._fromByteData(ByteData(4)..setUint32(0, value, Endian.little));