addOtherAnimation method

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

Method used to register new animation in others

Implementation

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