Decimal.fromInt constructor

Decimal.fromInt(
  1. int value
)

Create a new Decimal from an int.

Implementation

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