Dart Type test operators

In this tutorial you will learn about the Dart Type test operators and its application with practical example.

Dart Type test operators

The Type test operators are used to check type of an object. These operators are handy for checking types at runtime.

Operator Meaning
is True if the object has the specified type
is! False if the object has the specified type

is Operator

Example:- sdf

When you run the above Dart program, you will see following output.

Output:-

is! Operator

Example:-

When you run the above Dart program, you will see following output.

Output:-

In this tutorial we have learn about the Dart Type test operators and its application with practical example. I hope you will like this tutorial.