animationRepeating property
Whether the animated overlay restarts once it reaches the end of the route.
Setting this has a lasting side effect on Android. It is the one property applied through the native setOptions, which permanently switches the renderer to speed-based animation timing. A duration set earlier through the deprecated MPDirectionsRenderer.setAnimatedPolyline is discarded, and the animation re-times from animationSpeed and animationMinDuration, or from their built-in defaults where those are unset. MPDirectionsRenderer.clearOptions does not undo it; only calling setAnimatedPolyline again does.
Implementation
final bool? animationRepeating;