pow method

BigInteger pow(
  1. int exponent
)

Returns this BigInteger raised to the power of the exponent.

exponent the exponent (must be non-negative)

Implementation

BigInteger pow(int exponent) {
  if (exponent < 0) {
    throw InvalidArgumentException('Exponent must be non-negative');
  }
  return BigInteger._(_value.pow(exponent));
}