useFocus method

dynamic useFocus(
  1. FocusNode builder(
    1. FocusNode?
    ), {
  2. String? debugLabel,
  3. FocusOnKeyCallback? onKey,
  4. FocusOnKeyEventCallback? onKeyEvent,
  5. bool skipTraversal = false,
  6. bool canRequestFocus = true,
  7. 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,
  );
}