useFocusNode method

dynamic useFocusNode(
  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

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