buildAnimation method
Builds a sub-animation based on the properties of this entry.
Implementation
CurveTween buildAnimation({
required Duration totalDuration,
Curve? curve,
}) {
int beginT = begin.inMicroseconds, endT = end.inMicroseconds;
return CurveTween(
curve: Interval(beginT / totalDuration.inMicroseconds,
endT / totalDuration.inMicroseconds,
curve: curve ?? this.curve),
);
}