modPow method

  1. @override
i16 modPow(
  1. unsigned exponent,
  2. unsigned modulus
)
override

Returns this integer to the power of exponent modulo modulus.

The exponent must be non-negative and modulus must be positive.

Implementation

@override
i16 modPow(unsigned exponent, unsigned modulus) =>
    i16(value.modPow(exponent.value, modulus.value));