transform method
Returns a current animated value at the supplied theta.
Implementation
@override
T transform(double t) {
double beginT =
offset.inMilliseconds.toDouble() / duration.inMilliseconds.toDouble();
double endT = 1.0;
double nt = (t - beginT) / (endT - beginT);
return lerp(nt);
}