easeOutElastic static method

double easeOutElastic(
  1. double t
)

Elastic easing out.

Implementation

static double easeOutElastic(double t) {
  if (t == 0.0) return 0.0;
  if (t == 1.0) return 1.0;
  const c4 = (2.0 * math.pi) / 3.0;
  return math.pow(2.0, -10.0 * t) * math.sin((t * 10.0 - 0.75) * c4) + 1.0;
}