isShowClearIcon property
bool
get
isShowClearIcon
Implementation
bool get isShowClearIcon {
switch (state) {
case TextInputState.disable || TextInputState.completed:
return false;
default:
}
return text.isNotEmpty;
}