playOther method

void playOther(
  1. String key, {
  2. bool? flipX,
  3. bool? flipY,
})

Method used to play specific animation registred in others

Implementation

void playOther(String key, {bool? flipX, bool? flipY}) {
  if (others.containsKey(key) == true) {
    if (!runToTheEndFastAnimation) {
      _fastAnimation = null;
    }
    isFlipHorizontally = flipX ?? (isFlipHorizontally);
    isFlipVertically = flipY ?? (isFlipVertically);
    _current = others[key];
    _currentType = SimpleAnimationEnum.custom;
  }
}