toBytes method
Converts an integer to bytes with specified length and endianness.
Implementation
Uint8List toBytes(int length, {Endianness endianness = Endianness.Big}) =>
ByteUtils.intToBytes(this, length, endianness: endianness);
Converts an integer to bytes with specified length and endianness.
Uint8List toBytes(int length, {Endianness endianness = Endianness.Big}) =>
ByteUtils.intToBytes(this, length, endianness: endianness);