isOdd property

bool get isOdd

Returns if the number is odd

Implementation

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