loadSpriteAnimation method

Future<SpriteAnimation> loadSpriteAnimation(
  1. String path,
  2. SpriteAnimationData data
)

Utility method to load and cache the image for a sprite animation based on its options.

Implementation

Future<SpriteAnimation> loadSpriteAnimation(
  String path,
  SpriteAnimationData data,
) {
  return SpriteAnimation.load(
    path,
    data,
    images: images,
  );
}