static double easeInOut(double t) => t < .5 ? 4 * math.pow(t, 3).toDouble() : 1 - math.pow(-2 * t + 2, 3).toDouble() / 2;