Type Test Operators
Get introduced to type test operators in Dart.
We'll cover the following...
Overview
Type test operators are operators that can be used to check the type of an object at runtime. Below is a list of the type test operators supported by Dart.
Operator | Use |
---|---|
as |
typecast |
is |
True if the object has the specified type |