TouchRippleBehavior constructor
const
TouchRippleBehavior({
- Duration? spreadDuration,
- Curve? spreadCurve,
- Duration? fadeInDuration,
- Curve? fadeInCurve,
- Duration? fadeOutDuration,
- Curve? fadeOutCurve,
- Duration? cancelDuration,
- Curve? cancelCurve,
- double? lowerPercent,
- double? upperPercent,
- double? fadeLowerPercent,
- double? fadeUpperPercent,
- double? eventCallBackableMinPercent,
- bool? onlyMainButton,
Implementation
const TouchRippleBehavior({
this.spreadDuration,
this.spreadCurve,
this.fadeInDuration,
this.fadeInCurve,
this.fadeOutDuration,
this.fadeOutCurve,
this.cancelDuration,
this.cancelCurve,
this.lowerPercent,
this.upperPercent,
this.fadeLowerPercent,
this.fadeUpperPercent,
this.eventCallBackableMinPercent,
this.onlyMainButton,
}) : assert(lowerPercent != null ? lowerPercent >= 0 && lowerPercent <= 1 : true),
assert(upperPercent != null ? upperPercent >= 0 && upperPercent <= 1 : true),
assert(fadeLowerPercent != null ? fadeLowerPercent >= 0 && fadeLowerPercent <= 1 : true),
assert(fadeUpperPercent != null ? fadeUpperPercent >= 0 && fadeUpperPercent <= 1 : true),
assert(eventCallBackableMinPercent != null
? eventCallBackableMinPercent >= 0
&& eventCallBackableMinPercent <= 1 : true);