SpriteAnimationWidget constructor

const SpriteAnimationWidget({
  1. required SpriteAnimation animation,
  2. required SpriteAnimationTicker animationTicker,
  3. bool playing = true,
  4. Anchor anchor = Anchor.topLeft,
  5. WidgetBuilder? errorBuilder,
  6. WidgetBuilder? loadingBuilder,
  7. VoidCallback? onComplete,
  8. Paint? paint,
  9. 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;