isDivisibleBy method

bool isDivisibleBy(
  1. num other
)

Whether the number divides evenly by other.

Implementation

bool isDivisibleBy(num other) => other != 0 && this % other == 0;