base64UintDecode function
Decode unsigned BigInt value from base64 with or without padding.
Implementation
BigInt base64UintDecode(String base64) {
final bytes = base64Decode(addBase64Padding(base64));
var result = BigInt.zero;
for (var i = 0; i < bytes.length; i++) {
result += BigInt.from(bytes[bytes.length - i - 1]) << (8 * i);
}
return result;
}