addOtherAnimation method

Future<void> addOtherAnimation(
  1. String key,
  2. FutureOr<SpriteAnimation> animation
)

Method used to register new animation in others

Implementation

Future<void> addOtherAnimation(
  String key,
  FutureOr<SpriteAnimation> animation,
) async {
  others[key] = await animation;
}