Number isEven Property

  • Post author:
  • Post category:Dart
  • Post comments:2 Comments
Number isEven Property

In this guide, we will discuss 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

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply