pow method

Rational pow(
  1. int exponent
)

Returns this to the power of exponent.

Returns Rational.one if the exponent equals 0.

Implementation

Rational pow(int exponent) => _rational.pow(exponent);