toBytes method
Little-endian byte representation of the number
Implementation
Uint8List toBytes() {
var size = (bitLength / 8).ceil();
var result = Uint8List(size);
for (var i = 0; i < size; i++) {
result[i] = (this >> i * 8).toUnsigned(8).toInt();
}
return result;
}