isNullable property

bool isNullable

Returns true if this type represents a nullable type.

Implementation

bool get isNullable =>
    this is DynamicType || nullabilitySuffix == NullabilitySuffix.question;