useFocusScopeNode function

FocusScopeNode useFocusScopeNode({
  1. String? debugLabel,
  2. FocusOnKeyCallback? onKey,
  3. FocusOnKeyEventCallback? onKeyEvent,
  4. bool skipTraversal = false,
  5. bool canRequestFocus = true,
})

Creates an automatically disposed FocusScopeNode.

See also:

Implementation

FocusScopeNode useFocusScopeNode({
  String? debugLabel,
  FocusOnKeyCallback? onKey,
  FocusOnKeyEventCallback? onKeyEvent,
  bool skipTraversal = false,
  bool canRequestFocus = true,
}) {
  return use(
    _FocusScopeNodeHook(
      debugLabel: debugLabel,
      onKey: onKey,
      onKeyEvent: onKeyEvent,
      skipTraversal: skipTraversal,
      canRequestFocus: canRequestFocus,
    ),
  );
}