FocusableActionDetector constructor Null safety
- {Key? key,
- bool enabled = true,
- FocusNode? focusNode,
- bool autofocus = false,
- bool descendantsAreFocusable = true,
- bool descendantsAreTraversable = true,
- Map<
ShortcutActivator, Intent> ? shortcuts, - Map<
Type, Action< ? actions,Intent> > - ValueChanged<
bool> ? onShowFocusHighlight, - ValueChanged<
bool> ? onShowHoverHighlight, - ValueChanged<
bool> ? onFocusChange, - MouseCursor mouseCursor = MouseCursor.defer,
- required Widget child}
Create a const FocusableActionDetector.
The enabled, autofocus, mouseCursor, and child arguments must not be null.
Implementation
const FocusableActionDetector({
super.key,
this.enabled = true,
this.focusNode,
this.autofocus = false,
this.descendantsAreFocusable = true,
this.descendantsAreTraversable = true,
this.shortcuts,
this.actions,
this.onShowFocusHighlight,
this.onShowHoverHighlight,
this.onFocusChange,
this.mouseCursor = MouseCursor.defer,
required this.child,
}) : assert(enabled != null),
assert(autofocus != null),
assert(mouseCursor != null),
assert(child != null);