TouchRippleBehavior constructor

const TouchRippleBehavior({
  1. Duration? spreadDuration,
  2. Curve? spreadCurve,
  3. Duration? fadeInDuration,
  4. Curve? fadeInCurve,
  5. Duration? fadeOutDuration,
  6. Curve? fadeOutCurve,
  7. Duration? cancelDuration,
  8. Curve? cancelCurve,
  9. double? lowerPercent,
  10. double? upperPercent,
  11. double? fadeLowerPercent,
  12. double? fadeUpperPercent,
  13. double? eventCallBackableMinPercent,
  14. 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);