Decimal.fromBigInt constructor

Decimal.fromBigInt(
  1. BigInt value
)

Create a new Decimal from a BigInt.

Implementation

factory Decimal.fromBigInt(BigInt value) => value.toRational().toDecimal();