transform method

  1. @override
T transform(
  1. double t
)
override

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);
}