SpriteAnimationWidget.asset constructor

SpriteAnimationWidget.asset({
  1. required String path,
  2. required SpriteAnimationData data,
  3. Images? images,
  4. bool playing = true,
  5. Anchor anchor = Anchor.topLeft,
  6. WidgetBuilder? errorBuilder,
  7. WidgetBuilder? loadingBuilder,
  8. 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);