getEndRatio method

double getEndRatio(
  1. AnimationController controller,
  2. EffectEntry entry
)

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