useFocusNode function
FocusNode
useFocusNode({
- String? debugLabel,
- FocusOnKeyCallback? onKey,
- FocusOnKeyEventCallback? onKeyEvent,
- bool skipTraversal = false,
- bool canRequestFocus = true,
- bool descendantsAreFocusable = true,
Implementation
FocusNode useFocusNode({
String? debugLabel,
FocusOnKeyCallback? onKey,
FocusOnKeyEventCallback? onKeyEvent,
bool skipTraversal = false,
bool canRequestFocus = true,
bool descendantsAreFocusable = true,
}) {
return use(
_FocusNodeHook(
debugLabel: debugLabel,
onKey: onKey,
onKeyEvent: onKeyEvent,
skipTraversal: skipTraversal,
canRequestFocus: canRequestFocus,
descendantsAreFocusable: descendantsAreFocusable,
),
);
}