playOnceOther method

Future playOnceOther(
  1. String key, {
  2. VoidCallback? onFinish,
  3. VoidCallback? onStart,
  4. bool runToTheEnd = false,
  5. bool flipX = false,
  6. bool flipY = false,
  7. bool useCompFlip = false,
  8. Vector2? size,
  9. Vector2? offset,
})

Method used to play animation once time specific animation registred in others

Implementation

Future playOnceOther(
  String key, {
  VoidCallback? onFinish,
  VoidCallback? onStart,
  bool runToTheEnd = false,
  bool flipX = false,
  bool flipY = false,
  bool useCompFlip = false,
  Vector2? size,
  Vector2? offset,
}) async {
  if (others.containsKey(key) == true) {
    return playOnce(
      others[key]!,
      onFinish: onFinish,
      onStart: onStart,
      runToTheEnd: runToTheEnd,
      flipX: flipX,
      useCompFlip: useCompFlip,
      size: size,
      offset: offset,
    );
  }
}