toAnimation method

Future<SpriteAnimation> toAnimation({
  1. double stepTime = 1,
})

Implementation

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