FocusableActionDetectorModifier constructor

const FocusableActionDetectorModifier({
  1. Key? key,
  2. Widget? child,
  3. Key? modifierKey,
  4. bool enabled = true,
  5. FocusNode? focusNode,
  6. bool autofocus = false,
  7. bool descendantsAreFocusable = true,
  8. bool descendantsAreTraversable = true,
  9. Map<ShortcutActivator, Intent>? shortcuts,
  10. Map<Type, Action<Intent>>? actions,
  11. ValueChanged<bool>? onShowFocusHighlight,
  12. ValueChanged<bool>? onShowHoverHighlight,
  13. ValueChanged<bool>? onFocusChange,
  14. MouseCursor mouseCursor = MouseCursor.defer,
})

Create a const FocusableActionDetector.

The enabled, autofocus, mouseCursor, and child arguments must not be null.

Implementation

const FocusableActionDetectorModifier({
  super.key,
  super.child,
  super.modifierKey,
  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,
});