isNull property

bool get isNull

Returns true if this object is null.

Example:

String? name;
print(name.isNull); // true

Implementation

bool get isNull => this == null;