hasText property

bool get hasText

True if the text input contains non-whitespace characters.

Implementation

bool get hasText => textController.text.trim().isNotEmpty;