isOdd property

bool get isOdd

Whether the int is odd.

Implementation

bool get isOdd => this % 2 != 0;