FocusActionBuilder constructor

const FocusActionBuilder({
  1. Key? key,
  2. required Widget builder(
    1. BuildContext context,
    2. FocusControlState control
    ),
  3. VoidCallback? onTap,
  4. VoidCallback? onDoubleTap,
  5. VoidCallback? onLongTap,
  6. FocusNode? focusNode,
  7. bool isDisabled = false,
  8. bool requestFocusOnPress = true,
  9. MouseCursor? cursor,
  10. Map<Type, Action<Intent>>? actions,
  11. Map<ShortcutActivator, Intent>? shortcuts,
  12. HitTestBehavior? hitTestBehavior,
  13. bool autoFocus = false,
  14. bool descendantsAreFocusable = true,
  15. bool descendantsAreTraversable = true,
  16. void onHoverChanged(
    1. BuildContext context,
    2. FocusControlState control
    )?,
  17. void onFocusChanged(
    1. BuildContext context,
    2. FocusControlState control
    )?,
})

Implementation

const FocusActionBuilder({
  super.key,
  required this.builder,
  this.onTap,
  this.onDoubleTap,
  this.onLongTap,
  this.focusNode,
  this.isDisabled = false,
  this.requestFocusOnPress = true,
  this.cursor,
  this.actions,
  this.shortcuts,
  this.hitTestBehavior,
  this.autoFocus = false,
  this.descendantsAreFocusable = true,
  this.descendantsAreTraversable = true,
  this.onHoverChanged,
  this.onFocusChanged,
});