HoverButton constructor

const HoverButton({
  1. Key? key,
  2. required ButtonStateWidgetBuilder builder,
  3. MouseCursor? cursor,
  4. VoidCallback? onPressed,
  5. VoidCallback? onLongPress,
  6. FocusNode? focusNode,
  7. EdgeInsetsGeometry? margin,
  8. String? semanticLabel,
  9. VoidCallback? onTapDown,
  10. VoidCallback? onTapUp,
  11. VoidCallback? onTapCancel,
  12. VoidCallback? onLongPressEnd,
  13. VoidCallback? onLongPressStart,
  14. GestureDragStartCallback? onHorizontalDragStart,
  15. GestureDragUpdateCallback? onHorizontalDragUpdate,
  16. GestureDragEndCallback? onHorizontalDragEnd,
  17. Map<Type, GestureRecognizerFactory<GestureRecognizer>> gestures = const {},
  18. VoidCallback? onFocusTap,
  19. ValueChanged<bool>? onFocusChange,
  20. bool autofocus = false,
  21. bool actionsEnabled = true,
  22. Map<Type, Action<Intent>>? customActions,
  23. Map<ShortcutActivator, Intent>? shortcuts,
  24. bool focusEnabled = true,
  25. bool forceEnabled = false,
  26. HitTestBehavior hitTestBehavior = HitTestBehavior.opaque,
})

Creates a hover button.

Implementation

const HoverButton({
  super.key,
  required this.builder,
  this.cursor,
  this.onPressed,
  this.onLongPress,
  this.focusNode,
  this.margin,
  this.semanticLabel,
  this.onTapDown,
  this.onTapUp,
  this.onTapCancel,
  this.onLongPressEnd,
  this.onLongPressStart,
  this.onHorizontalDragStart,
  this.onHorizontalDragUpdate,
  this.onHorizontalDragEnd,
  this.gestures = const {},
  this.onFocusTap,
  this.onFocusChange,
  this.autofocus = false,
  this.actionsEnabled = true,
  this.customActions,
  this.shortcuts,
  this.focusEnabled = true,
  this.forceEnabled = false,
  this.hitTestBehavior = HitTestBehavior.opaque,
});