toBigInt method

BigInt toBigInt()

Convert this expression to a BigInt, requires that this expression is a Numeral.

Implementation

BigInt toBigInt() {
  if (this is Numeral) {
    return (this as Numeral).toBigInt();
  } else {
    throw ArgumentError('cant be converted to BigInt: $this');
  }
}