MapMarkerAnimation.withTracks constructor
- List<
MapItemKeyFrameTrack> tracks, - int repeatCount
Creates an animation based on multiple keyframe tracks.
Allows combining multiple property animations (e.g. scale and opacity) into a single animation that plays them simultaneously.
-
tracksList of keyframe tracks for the animation. Must not be empty. -
repeatCountNumber of times to play the animation. 0 means repeat infinitely, 1 means play once, N means play N times. Negative values are treated as 1. The duration of one iteration is determined by the longest track. Shorter tracks hold their final value until the iteration ends. When repeating, all tracks restart together from their first keyframe without interpolation from the previous iteration's last keyframe.
Throws MapMarkerAnimationInstantiationException. If the list of tracks is empty or any of the specified keyframe tracks cannot be used to create animation of a marker.
Implementation
factory MapMarkerAnimation.withTracks(List<MapItemKeyFrameTrack> tracks, int repeatCount) => $prototype.withTracks(tracks, repeatCount);