toBigInt method

BigInt toBigInt()

Implementation

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