setBarProgress method

void setBarProgress()

Implementation

void setBarProgress() {
  if (!isAnimation) {
    _barProgress = progress;
    return;
  }

  _animation = Tween(begin: 0.0, end: progress).animate(animationController!)
    ..addListener(() {
      _barProgress = _animation.value;
    });
}