toAnimation method

Future<SpriteAnimation> toAnimation()

Implementation

Future<SpriteAnimation> toAnimation() async {
  var sprite = await this;
  return SpriteAnimation.spriteList([sprite], stepTime: 1);
}