DotLottieAnimation config

DotLottieAnimation instances can be initialized with the following settings:

PropertyTypeDescription
animationDataStringData of a Lottie animation as a String.
fileNameStringName of the animation inside the main asset bundle.
webURLStringA web URL pointing to a .json or .lottie animation file.

You can then pass a AnimationConfig to define the playback settings of your animation containing the following settings:

PropertyTypeDescription
loopBoolLoop the animation.
autoplayBoolAutoplay the animation on load.
speedFloatPlayback speed of the animation.
modeModePlayback mode of the animation. Can be either: forward, reverse, bounce, bounceReverse.
widthIntOverride the width of the animation. By default this is read from inside the Lottie, otherwise defaults to 512.
heightIntOverride the height of the animation. By default this is read from inside the Lottie, otherwise defaults to 512.
segment(Float, Float)Play the animation between an interval of frames.
backgroundColorCIImageBackground color of the animation.
useFrameInterpolationBoolUse frame interpolation, defaults to true. Having this can impact performance. Useful to maintain the quality of the animation at slow playback speeds.
markerStringThe lottie named marker to play.
layoutLayoutThe animation layout configuration.