Dart Programming – Type test Operators

  • Post author:
  • Post category:Dart
  • Post comments:2 Comments
Dart Programming Type test Operators

In this guide, we will discuss Type test Operators in Dart Programming.

is Example

void main() { 
   int n = 2; 
   print(n is int); 
} 

It will produce the following output −

true 

is! Example

void main() { 
   double  n = 2.20; 
   var num = n is! int; 
   print(num); 
} 

It will produce the following output −

true 

Next Topic : Click Here

This Post Has 2 Comments

Leave a Reply