toBigInt method

BigInt? toBigInt({
  1. BigInt? def,
})

Implementation

BigInt? toBigInt({BigInt? def}) {
  try {
    if (this == null) return def;
    return BigInt.parse(toString());
  } catch (e) {
    return def;
  }
}