useFocus method
dynamic
useFocus(
- FocusNode builder(), {
- String? debugLabel,
- FocusOnKeyCallback? onKey,
- FocusOnKeyEventCallback? onKeyEvent,
- bool skipTraversal = false,
- bool canRequestFocus = true,
- bool descendantsAreFocusable = true,
Implementation
useFocus(
FocusNode Function(FocusNode?) builder, {
String? debugLabel,
FocusOnKeyCallback? onKey,
FocusOnKeyEventCallback? onKeyEvent,
bool skipTraversal = false,
bool canRequestFocus = true,
bool descendantsAreFocusable = true,
}) {
useFocusNode(
builder,
debugLabel: debugLabel,
onKey: onKey,
onKeyEvent: onKeyEvent,
skipTraversal: skipTraversal,
canRequestFocus: canRequestFocus,
descendantsAreFocusable: descendantsAreFocusable,
);
}