pow method

Decimal pow(
  1. int exponent
)

Returns this to the power of exponent.

Returns one if the exponent equals 0.

Implementation

Decimal pow(int exponent) => Decimal._fromRational(_rational.pow(exponent));