isOdd property
bool
get
isOdd
Returns true
if the number is odd, false
otherwise.
Implementation
bool get isOdd => this % 2 != 0;
Returns true
if the number is odd, false
otherwise.
bool get isOdd => this % 2 != 0;