bool hasText

Whether this label has any text (specified using text).

Source

bool get hasText => text != null;