FocusModifier constructor

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

Creates a widget that manages a FocusNode.

The child argument is required and must not be null.

The autofocus argument must not be null.

Implementation

const FocusModifier({
  super.key,
  super.child,
  super.modifierKey,
  this.focusNode,
  this.autofocus = false,
  this.onFocusChange,
  this.includeSemantics = true,
  this.canRequestFocus,
  this.debugLabel,
  this.descendantsAreFocusable,
  this.descendantsAreTraversable,
  this.onKey,
  this.onKeyEvent,
  this.skipTraversal,
});