hasText property

bool get hasText

Indicates whether this text fragment contains any character content.

Implementation

bool get hasText => text.isNotEmpty;