This Operator use for to comparison.
This operator only provide boolean Value means
" True and False "
Operator Symbol | Operator Name | Operator Description |
is | is | Gives boolean value true as output if the object has specific type |
is! | is not | Gives boolean value false as output if the object has specific type |
void main()
{
String a = 'GFG';
double b = 3.3;
// Using is to compare
print(a is String); // true
// Using is! to compare
print(b is !int); // true
}
ย