SpriteAnimationWidget constructor

SpriteAnimationWidget({
  1. required SpriteAnimation animation,
  2. bool playing = true,
  3. Anchor anchor = Anchor.topLeft,
  4. WidgetBuilder? errorBuilder,
  5. WidgetBuilder? loadingBuilder,
  6. 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);