FocusModifier constructor
const
FocusModifier({
- Key? key,
- Widget? child,
- Key? modifierKey,
- FocusNode? focusNode,
- bool autofocus = false,
- ValueChanged<
bool> ? onFocusChange, - bool includeSemantics = true,
- bool? canRequestFocus,
- String? debugLabel,
- bool? descendantsAreFocusable,
- bool? descendantsAreTraversable,
- FocusOnKeyCallback? onKey,
- FocusOnKeyEventCallback? onKeyEvent,
- 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,
});