loadSpriteAnimation method
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,
);
}