isOdd property

bool isOdd

Returns true if the number this is odd

Implementation

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