resumeWith method

void resumeWith(
  1. TouchRippleBehavior behavior
)

Resumes the touch ripple effect animations with the given behavior.

Implementation

void resumeWith(TouchRippleBehavior behavior) {
  _fadeCurved.curve = behavior.fadeInCurve!;
  _fadeCurved.reverseCurve = behavior.fadeOutCurve!;
  _fadeAnimation.duration = behavior.fadeInDuration;
  _fadeAnimation.reverseDuration = behavior.fadeOutDuration;
  _fadeAnimation.stop();
  _fadeAnimation.forward();

  _spreadAnimation.duration = behavior.spreadDuration;
  _spreadAnimation.stop();
  _spreadAnimation.forward();
}