hasFocus property
bool
get
hasFocus
Returns true when any widget is focused.
Implementation
bool get hasFocus => _focusedId != null;
Returns true when any widget is focused.
bool get hasFocus => _focusedId != null;