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