int32ToBytes method

Uint8List int32ToBytes()

Converts this as a Int32 to bytes (Uint8List).

Implementation

Uint8List int32ToBytes() =>
    Uint8List(4)..asByteData().setInt32(0, this, Endian.big);