isValid property

bool get isValid

Returns whether this type is valid (not an invalidType).

Implementation

bool get isValid => this != invalidType;