base64ToBigInt static method

BigInt? base64ToBigInt(
  1. String str
)

Implementation

static BigInt? base64ToBigInt(String str) {
  try {
    final bytes = base64.decode(str);
    final s = utf8.decode(bytes);
    return BigInt.tryParse(s);
  } catch (e) {
    return null;
  }
}