toBigInt method

  1. @override
BigInt toBigInt()
override

value as bigint

Implementation

@override
BigInt toBigInt() {
  if (value is int) return BigInt.from(value);
  return value;
}