SpriteAnimationWidget constructor
const
SpriteAnimationWidget({
- required SpriteAnimation animation,
- required SpriteAnimationTicker animationTicker,
- bool playing = true,
- Anchor anchor = Anchor.topLeft,
- WidgetBuilder? errorBuilder,
- WidgetBuilder? loadingBuilder,
- VoidCallback? onComplete,
- Paint? paint,
- Key? key,
Implementation
const SpriteAnimationWidget({
required SpriteAnimation animation,
required SpriteAnimationTicker animationTicker,
this.playing = true,
this.anchor = Anchor.topLeft,
this.errorBuilder,
this.loadingBuilder,
this.onComplete,
this.paint,
super.key,
}) : _animationFuture = animation,
_animationTicker = animationTicker;