easeInOutCubic static method

double easeInOutCubic(
  1. double t
)

Cubic easing in/out.

Implementation

static double easeInOutCubic(double t) =>
    t < 0.5 ? 4.0 * t * t * t : 1.0 - math.pow(-2.0 * t + 2.0, 3) / 2.0;