playOther method

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

Method used to play specific animation registred in others

Implementation

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