Tappable constructor

const Tappable({
  1. Key? key,
  2. GestureTapCallback? onTap,
  3. GestureTapCallback? onDoubleTap,
  4. GestureLongPressCallback? onLongPress,
  5. GestureTapDownCallback? onTapDown,
  6. GestureTapUpCallback? onTapUp,
  7. GestureTapCancelCallback? onTapCancel,
  8. HitTestBehavior? behavior,
  9. String? tooltip,
  10. bool enableAnimation = true,
  11. bool enableFocusBorder = true,
  12. bool enableHover = false,
  13. bool enableHoverOverlay = false,
  14. Widget builder(
    1. BuildContext context,
    2. TappableState state
    )?,
  15. Widget? child,
  16. FocusNode? focusNode,
  17. EdgeInsets hoverOverlayPadding = EdgeInsets.zero,
  18. double? hoverOverlayBorderRadius,
  19. Color? hoverOverlayColorTint,
  20. ValueChanged<TappableState>? onStateChanged,
})

Implementation

const Tappable({
  super.key,
  this.onTap,
  this.onDoubleTap,
  this.onLongPress,
  this.onTapDown,
  this.onTapUp,
  this.onTapCancel,
  this.behavior,
  this.tooltip,
  this.enableAnimation = true,
  this.enableFocusBorder = true,
  this.enableHover = false,
  this.enableHoverOverlay = false,
  this.builder,
  this.child,
  this.focusNode,
  this.hoverOverlayPadding = EdgeInsets.zero,
  this.hoverOverlayBorderRadius,
  this.hoverOverlayColorTint,
  this.onStateChanged,
});