playOther method

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

Method used to play specific animation registred in others

Implementation

void playOther(dynamic key, {bool? flipX, bool? flipY}) {
  if (containOther(key) &&
      (_currentKeyCustom != key || _checkFlipIsDiffrent(flipX, flipY))) {
    if (!runToTheEndFastAnimation) {
      _fastAnimation = null;
    }
    isFlipHorizontally = flipX ?? (isFlipHorizontally);
    isFlipVertically = flipY ?? (isFlipVertically);
    _current.animation = others[key];
    _currentKeyCustom = key;
    _currentType = SimpleAnimationEnum.custom;
  }
}