fastSlowInOut property
FastSlowInOut (approximated via an easeInOutCubic formula): f(t) = { 4t^3 if t < 0.5 1 - (-2t + 2)^3 / 2 if t >= 0.5 }
Implementation
static final Curve fastSlowInOut = _LambdaCurve(
id: 'fastSlowInOut',
transformFunction: (t) {
if (t < 0.5) {
return 4 * t * t * t;
} else {
return 1 - pow(-2 * t + 2, 3).toDouble() / 2;
}
},
durationSeconds: _defaultDuration,
bounce: 0,
);