hostHasFocus property

  1. @override
bool get hostHasFocus

Whether one of the host's own widgets has keyboard focus: Tab is then the host's.

Implementation

@override
bool get hostHasFocus {
  final f = FocusManager.instance.primaryFocus;
  return f != null && f is! FocusScopeNode;
}