mayBeNull property

bool get mayBeNull

Whether this state may be null (including definitely null).

Implementation

bool get mayBeNull =>
    state == Nullability.maybeNull || state == Nullability.definitelyNull;