HoverButton constructor

const HoverButton({
  1. Key? key,
  2. required ButtonStateWidgetBuilder builder,
  3. ButtonState<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. ValueChanged<bool>? onFocusChange,
  18. bool autofocus = false,
})

Creates a hover button.

Implementation

const HoverButton({
  Key? 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.onFocusChange,
  this.autofocus = false,
}) : super(key: key);