isOdd property

bool get isOdd

Whether this integer is odd.

Implementation

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