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