isValid property

bool get isValid

determines if all required labels are set

Implementation

bool get isValid =>
    type != null && (emailAddress != null || phoneNumber != null);