buildAnimation method

void buildAnimation()

Implementation

void buildAnimation() {
  try {
    if ((this.paused ||
            (this.finished &&
                !(this.controller.status == AnimationStatus.forward))) &&
        this.widget.run == true) {
      this.paused = false;
      this.finished = false;
      this.controller.reset();
      this.onFinishEvoked = false;
      this.controller.forward();
    } else if ((this.controller.status == AnimationStatus.forward) &&
        this.widget.run == false) {
      this.controller.stop();
      this.paused = true;
    }
  } on TickerCanceled {
    // TODO usecase?
  }
}