toUint32 method
Returns a Uint8List with the bytes of the integer encoded in endian.
Implementation
Uint8List toUint32([Endian endian = Endian.big]) {
final result = ByteData(4);
result.setUint32(0, this, endian);
return result.buffer.asUint8List();
}