bigIntToUint64 function
Implementation
Int64 bigIntToUint64(BigInt value) {
if (value.isNegative || value >= (BigInt.one << 64)) {
throw ArgumentError.value(value, 'value', 'Expected u64');
}
return Int64.parseRadix(value.toRadixString(16), 16);
}