FocusScopeNode constructor

FocusScopeNode({
  1. String? debugLabel,
  2. FocusOnKeyEventCallback? onKeyEvent,
  3. @Deprecated('Use onKeyEvent instead. ' 'This feature was deprecated after v3.18.0-2.0.pre.') FocusOnKeyCallback? onKey,
  4. bool skipTraversal = false,
  5. bool canRequestFocus = true,
  6. TraversalEdgeBehavior traversalEdgeBehavior = TraversalEdgeBehavior.closedLoop,
})

Creates a FocusScopeNode.

All parameters are optional.

Implementation

FocusScopeNode({
  super.debugLabel,
  super.onKeyEvent,
  @Deprecated(
    'Use onKeyEvent instead. '
    'This feature was deprecated after v3.18.0-2.0.pre.',
  )
  super.onKey,
  super.skipTraversal,
  super.canRequestFocus,
  this.traversalEdgeBehavior = TraversalEdgeBehavior.closedLoop,
})  : super(descendantsAreFocusable: true);