useFocusNode function Null safety

FocusNode useFocusNode(
  1. {String? debugLabel,
  2. FocusOnKeyCallback? onKey,
  3. bool skipTraversal = false,
  4. bool canRequestFocus = true,
  5. bool descendantsAreFocusable = true}
)

Creates and dispose of a FocusNode.

See also:

Implementation

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