isOdd property

bool get isOdd

Returns true if this number is a odd number.

Example: 12.isOdd -> false.

Implementation

bool get isOdd => toInt() % 2 != 0;