focused property
Whether this field currently has input focus.
Implementation
@override
bool get focused => _focused;
set
focused
(bool val)
Implementation
set focused(bool val) {
final wasFocused = _focused;
if (wasFocused && !val && touched) {
validate();
}
_focused = val;
if (val) {
touched = true;
}
if (wasFocused != val) {
_state?._syncFromImperativeFocus(val);
}
}