hasAnimationFinished method

bool hasAnimationFinished()

Implementation

bool hasAnimationFinished() {
  if (_currentState == null) {
    return true;
  }
  return (_currentIndex == (totalFrame - 1) && !_currentState!.loop && _waitTime <= 0);
}