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;
Returns true if this number is a odd number.
Example: 12.isOdd -> false.
bool get isOdd => toInt() % 2 != 0;