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
Pingback: Equality and Relational Operators | Adglob Infosystem Pvt Ltd
Pingback: Dart Programming - Operators | Adglob Infosystem Pvt Ltd