primaryFocus top-level property
Provides convenient access to the current FocusManager.primaryFocus from the WidgetsBinding instance.
Implementation
FocusNode? get primaryFocus => WidgetsBinding.instance.focusManager.primaryFocus;
Provides convenient access to the current FocusManager.primaryFocus from the WidgetsBinding instance.
FocusNode? get primaryFocus => WidgetsBinding.instance.focusManager.primaryFocus;