hasText property
bool
get
hasText
True if the text input contains non-whitespace characters.
Implementation
bool get hasText => textController.text.trim().isNotEmpty;
True if the text input contains non-whitespace characters.
bool get hasText => textController.text.trim().isNotEmpty;