setIsBoomerang method

void setIsBoomerang(
  1. bool isBoomerang
)

Use this function to set the value for ImageSequenceAnimatorState.isBoomerang at runtime.

Implementation

void setIsBoomerang(bool isBoomerang) {
  if (!_isReadyToPlay) return;

  this._isBoomerang = isBoomerang;
  if (this.isBoomerang) {
    _isLooping = false;
    if (!_animationController!.isAnimating) restart();
  }
}