Decimal.fromBigInt constructor

Decimal.fromBigInt(
  1. BigInt n, {
  2. int precision = 0,
})

Creates a Decimal from a BigInt.

Implementation

factory Decimal.fromBigInt(BigInt n, {int precision = 0}) =>
    Decimal.fromDynamicInt(n.toDynamicInt(), precision: precision);