bounceOut property

Curve bounceOut
final

BounceOut curve: a common bounce effect implementation.

Implementation

static final Curve bounceOut = _LambdaCurve(
  id: 'bounceOut',
  transformFunction: (t) {
    if (t < 1 / 2.75) {
      return 7.5625 * t * t;
    } else if (t < 2 / 2.75) {
      t = t - (1.5 / 2.75);
      return 7.5625 * t * t + 0.75;
    } else if (t < 2.5 / 2.75) {
      t = t - (2.25 / 2.75);
      return 7.5625 * t * t + 0.9375;
    } else {
      t = t - (2.625 / 2.75);
      return 7.5625 * t * t + 0.984375;
    }
  },
  durationSeconds: _defaultDuration,
  bounce: 0,
);