num easeOutBounce(num ratio)

Source

static num easeOutBounce(num ratio) {
  if (ratio < 1 / 2.75) {
    return 7.5625 * ratio * ratio;
  } else if (ratio < 2 / 2.75) {
    ratio = ratio - 1.5 / 2.75;
    return 7.5625 * ratio * ratio + 0.75;
  } else if (ratio < 2.5 / 2.75) {
    ratio = ratio - 2.25 / 2.75;
    return 7.5625 * ratio * ratio + 0.9375;
  } else {
    ratio = ratio - 2.625 / 2.75;
    return 7.5625 * ratio * ratio + 0.984375;
  }
}