TouchRipple<T extends dynamic> constructor
const
TouchRipple<T extends dynamic> ({
- Key? key,
- VoidCallback? onTap,
- TouchRippleAsyncCallback<
T> ? onTapAsync, - TouchRippleAsyncNotifyCallback<
T> ? onTapAsyncStart, - TouchRippleAsyncResultCallback<
T> ? onTapAsyncEnd, - VoidCallback? onDoubleTap,
- TouchRippleContinuableCallback? onDoubleTapConsecutive,
- VoidCallback? onDoubleTapStart,
- VoidCallback? onDoubleTapEnd,
- TouchRippleContinuableCallback? onLongTap,
- VoidCallback? onLongTapStart,
- VoidCallback? onLongTapEnd,
- VoidCallback? onFocusStart,
- VoidCallback? onFocusEnd,
- VoidCallback? onHoverStart,
- VoidCallback? onHoverEnd,
- HitTestBehavior? hitBehavior,
- Color? rippleColor,
- Color? hoverColor,
- Color? focusColor,
- double? rippleScale,
- double? rippleBlurRadius,
- BorderRadius? rippleBorderRadius,
- Duration? previewDuration,
- Duration? tappableDuration,
- Duration? doubleTappableDuration,
- Duration? doubleTapAliveDuration,
- Duration? longTappableDuration,
- Duration? longTapCycleDuration,
- TouchRippleBehavior? tapBehavior,
- TouchRippleBehavior? doubleTapBehavior,
- TouchRippleBehavior? longTapBehavior,
- TouchRippleRejectBehavior? rejectBehavior,
- TouchRippleCancelBehavior? cancelBehavior,
- TouchRippleOverlapBehavior? overlapBehavior,
- TouchRippleRenderOrderType? renderOrderType,
- TouchRippleFocusTiming? focusTiming,
- TouchRippleOrigin? origin,
- TouchRippleShape? shape,
- TouchRippleAnimation? hoverAnimation,
- TouchRippleAnimation? focusAnimation,
- bool? useHoverEffect,
- bool? useFocusEffect,
- bool? onlyMainButton,
- TouchRippleController? controller,
- 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);