getEndRatio method
Returns a ratio corresponding to the end of the specified entry.
Implementation
double getEndRatio(AnimationController controller, EffectEntry entry) {
int ms = controller.duration?.inMilliseconds ?? 0;
return ms == 0 ? 0 : entry.end.inMilliseconds / ms;
}