animation static method
Creates a new SingleAnimationPainter instance.
animationNameis the name of the animation to play.fitdetermines how the artboard is scaled to fit its container.alignmentdetermines how the artboard is positioned within its container.
Implementation
static SingleAnimationPainter animation(
String animationName, {
Fit fit = RiveDefaults.fit,
Alignment alignment = RiveDefaults.alignment,
}) =>
SingleAnimationPainter(
animationName,
fit: fit,
alignment: alignment,
);