pow method

int pow(
  1. int expontent
)

Returns this to the power of the provided expontent.

Unlike math.pow, this is statically guaranteed to be the result of two ints, so we know the result is also an int, and a cast is not needed.

Implementation

int pow(int expontent) => math.pow(this, expontent).unsafeCast();