HoverButton constructor
const
HoverButton({
- Key? key,
- required ButtonStateWidgetBuilder builder,
- MouseCursor? cursor,
- VoidCallback? onPressed,
- VoidCallback? onLongPress,
- FocusNode? focusNode,
- EdgeInsetsGeometry? margin,
- String? semanticLabel,
- VoidCallback? onTapDown,
- VoidCallback? onTapUp,
- VoidCallback? onTapCancel,
- VoidCallback? onLongPressEnd,
- VoidCallback? onLongPressStart,
- GestureDragStartCallback? onHorizontalDragStart,
- GestureDragUpdateCallback? onHorizontalDragUpdate,
- GestureDragEndCallback? onHorizontalDragEnd,
- Map<
Type, GestureRecognizerFactory< gestures = const {},GestureRecognizer> > - VoidCallback? onFocusTap,
- ValueChanged<
bool> ? onFocusChange, - bool autofocus = false,
- bool actionsEnabled = true,
- Map<
Type, Action< ? customActions,Intent> > - Map<
ShortcutActivator, Intent> ? shortcuts, - bool focusEnabled = true,
- bool forceEnabled = false,
- 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,
});