transform method
Returns the value of this animatable at the given t.
t is typically in the range 0.0 to 1.0 but may extend beyond that
range for curves that overshoot.
Implementation
@override
double transform(double t) {
if (t == 0.0 || t == 1.0) {
// Ensure t=0 → 0 and t=1 → 1 even if the curve has precision issues.
return t;
}
return curve.transform(t);
}