transform method
- @override
override
Returns the value of the object at point t
.
The value of t
is nominally a fraction in the range 0.0 to 1.0, though
in practice it may extend outside this range.
See also:
- evaluate, which is a shorthand for applying transform to the value of an Animation.
- Curve.transform, a similar method for easing curves.
Implementation
@override
double transform(double t) {
if (t == 0.0 || t == 1.0) {
assert(curve.transform(t).round() == t);
return t;
}
return curve.transform(t);
}