useFocused function
Subscribes to focusNode
changes and marks the widget as needing build
whenever they happen. Returns whether focusNode
has focus.
Implementation
bool useFocused(FocusNode focusNode) {
return useListenable(focusNode).hasFocus;
}