Number isEven Property



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

Syntax

num.isEven 

Example

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

It will produce the following output

true
dart_programming_numbers.htm
Advertisements