isOdd property
bool
get
isOdd
Checks if the number is odd.
Example:
print(3.isOdd); // true
Implementation
bool get isOdd => !isEven;
Checks if the number is odd.
Example:
print(3.isOdd); // true
bool get isOdd => !isEven;