isDivisibleBy method

bool isDivisibleBy(
  1. int divisor
)

Checks if this integer is divisible by divisor.

Implementation

bool isDivisibleBy(int divisor) => this % divisor == 0;