SpriteAnimationWidget constructor
SpriteAnimationWidget({
- required SpriteAnimation animation,
- bool playing = true,
- Anchor anchor = Anchor.topLeft,
- WidgetBuilder? errorBuilder,
- WidgetBuilder? loadingBuilder,
- Key? key,
Implementation
SpriteAnimationWidget({
required SpriteAnimation animation,
this.playing = true,
this.anchor = Anchor.topLeft,
this.errorBuilder,
this.loadingBuilder,
Key? key,
}) : _animationFuture = (() => Future.value(animation)),
super(key: key);