Number isOdd Property


Advertisements

This property returns a Boolean value true if the number is an odd number.

Syntax

num.isOdd 

Example

void main() { 
   int posNum = 10; 
   print(posNum.isOdd); 
}   

It will produce the following output

false
dart_programming_numbers.htm
Advertisements