SpriteAnimationWidget.asset constructor
SpriteAnimationWidget.asset({
- required String path,
- required SpriteAnimationData data,
- Images? images,
- bool playing = true,
- Anchor anchor = Anchor.topLeft,
- WidgetBuilder? errorBuilder,
- WidgetBuilder? loadingBuilder,
- Key? key,
Implementation
SpriteAnimationWidget.asset({
required String path,
required SpriteAnimationData data,
Images? images,
this.playing = true,
this.anchor = Anchor.topLeft,
this.errorBuilder,
this.loadingBuilder,
Key? key,
}) : _animationFuture = (() => SpriteAnimation.load(
path,
data,
images: images,
)),
super(key: key);