Decimal.fromInt constructor

Decimal.fromInt(
  1. int value
)

Implementation

factory Decimal.fromInt(int value) =>
    Decimal._fromRational(Rational(BigInt.from(value)));