TouchRipple<T extends dynamic> constructor

const TouchRipple<T extends dynamic>({
  1. Key? key,
  2. VoidCallback? onTap,
  3. TouchRippleAsyncCallback<T>? onTapAsync,
  4. TouchRippleAsyncNotifyCallback<T>? onTapAsyncStart,
  5. TouchRippleAsyncResultCallback<T>? onTapAsyncEnd,
  6. VoidCallback? onDoubleTap,
  7. TouchRippleContinuableCallback? onDoubleTapConsecutive,
  8. VoidCallback? onDoubleTapStart,
  9. VoidCallback? onDoubleTapEnd,
  10. TouchRippleContinuableCallback? onLongTap,
  11. VoidCallback? onLongTapStart,
  12. VoidCallback? onLongTapEnd,
  13. VoidCallback? onFocusStart,
  14. VoidCallback? onFocusEnd,
  15. VoidCallback? onHoverStart,
  16. VoidCallback? onHoverEnd,
  17. HitTestBehavior? hitBehavior,
  18. Color? rippleColor,
  19. Color? hoverColor,
  20. Color? focusColor,
  21. double? rippleScale,
  22. double? rippleBlurRadius,
  23. BorderRadius? rippleBorderRadius,
  24. Duration? previewDuration,
  25. Duration? tappableDuration,
  26. Duration? doubleTappableDuration,
  27. Duration? doubleTapAliveDuration,
  28. Duration? longTappableDuration,
  29. Duration? longTapCycleDuration,
  30. TouchRippleBehavior? tapBehavior,
  31. TouchRippleBehavior? doubleTapBehavior,
  32. TouchRippleBehavior? longTapBehavior,
  33. TouchRippleRejectBehavior? rejectBehavior,
  34. TouchRippleCancelBehavior? cancelBehavior,
  35. TouchRippleOverlapBehavior? overlapBehavior,
  36. TouchRippleRenderOrderType? renderOrderType,
  37. TouchRippleFocusTiming? focusTiming,
  38. TouchRippleOrigin? origin,
  39. TouchRippleShape? shape,
  40. TouchRippleAnimation? hoverAnimation,
  41. TouchRippleAnimation? focusAnimation,
  42. bool? useHoverEffect,
  43. bool? useFocusEffect,
  44. bool? onlyMainButton,
  45. TouchRippleController? controller,
  46. required Widget child,
})

Implementation

const TouchRipple({
  super.key,
  this.onTap,
  this.onTapAsync,
  this.onTapAsyncStart,
  this.onTapAsyncEnd,
  this.onDoubleTap,
  this.onDoubleTapConsecutive,
  this.onDoubleTapStart,
  this.onDoubleTapEnd,
  this.onLongTap,
  this.onLongTapStart,
  this.onLongTapEnd,
  this.onFocusStart,
  this.onFocusEnd,
  this.onHoverStart,
  this.onHoverEnd,
  this.hitBehavior,
  this.rippleColor,
  this.hoverColor,
  this.focusColor,
  this.rippleScale,
  this.rippleBlurRadius,
  this.rippleBorderRadius,
  this.previewDuration,
  this.tappableDuration,
  this.doubleTappableDuration,
  this.doubleTapAliveDuration,
  this.longTappableDuration,
  this.longTapCycleDuration,
  this.tapBehavior,
  this.doubleTapBehavior,
  this.longTapBehavior,
  this.rejectBehavior,
  this.cancelBehavior,
  this.overlapBehavior,
  this.renderOrderType,
  this.focusTiming,
  this.origin,
  this.shape,
  this.hoverAnimation,
  this.focusAnimation,
  this.useHoverEffect,
  this.useFocusEffect,
  this.onlyMainButton,
  this.controller,
  required this.child
}) : assert(rippleScale == null || rippleScale != 0);