isOdd method

bool isOdd()

Returns whether this number is odd.

Implementation

bool isOdd() => this % 2 != 0;