FocusScope constructor

const FocusScope({
  1. Key? key,
  2. FocusScopeNode? node,
  3. FocusNode? parentNode,
  4. required Widget child,
  5. bool autofocus = false,
  6. ValueChanged<bool>? onFocusChange,
  7. bool? canRequestFocus,
  8. bool? skipTraversal,
  9. FocusOnKeyEventCallback? onKeyEvent,
  10. FocusOnKeyCallback? onKey,
  11. String? debugLabel,
  12. bool includeSemantics = true,
  13. bool? descendantsAreFocusable,
  14. bool? descendantsAreTraversable,
})

Creates a widget that manages a FocusScopeNode.

Implementation

const FocusScope({
  super.key,
  FocusScopeNode? node,
  super.parentNode,
  required super.child,
  super.autofocus,
  super.onFocusChange,
  super.canRequestFocus,
  super.skipTraversal,
  super.onKeyEvent,
  super.onKey,
  super.debugLabel,
  super.includeSemantics,
  super.descendantsAreFocusable,
  super.descendantsAreTraversable,
})  : super(
        focusNode: node,
      );