modPow method

BigInt? modPow(
  1. BigInt exponent,
  2. BigInt modulus
)

Returns this integer to the power of exponent modulo modulus.

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

Implementation

BigInt? modPow(BigInt exponent, BigInt modulus) =>
    value?.modPow(exponent, modulus);