Cubic easing in/out.
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;