updateBottomPanelState method
void
updateBottomPanelState()
Implementation
void updateBottomPanelState() {
var oldState = bottomPanelState;
if (invalid && isNotEmpty(errorMessage)) {
bottomPanelState = BottomPanelState.error;
ariaDescribedBy = _inputAriaDescribedBy == null
? errorTextId
: '$_inputAriaDescribedBy $errorTextId';
} else if ((!showHintOnlyOnFocus || focused) && isNotEmpty(_hintText)) {
bottomPanelState = BottomPanelState.hint;
ariaDescribedBy = _inputAriaDescribedBy;
} else {
bottomPanelState = BottomPanelState.empty;
ariaDescribedBy = _inputAriaDescribedBy;
}
if (oldState != bottomPanelState) {
_changeDetector.markForCheck();
}
}