buildAnimation method
Builds a sub-animation based on the properties of this entry.
Implementation
Animation<double> buildAnimation(
AnimationController controller, {
Curve? curve,
}) {
int ttlT = controller.duration?.inMicroseconds ?? 0;
int beginT = begin.inMicroseconds, endT = end.inMicroseconds;
return CurvedAnimation(
parent: controller,
curve: Interval(beginT / ttlT, endT / ttlT, curve: curve ?? this.curve),
);
}