refreshFinish property

set refreshFinish (bool finish)

Implementation

set refreshFinish(bool finish) {
  if (_refreshFinish != finish) {
    if (finish) {
      Future.delayed(_completeDuration! - const Duration(milliseconds: 300), () {
        if (mounted) {
          _scaleController.animateTo(1.0, duration: _kIndicatorScaleDuration);
        }
      });
      Future.delayed(_completeDuration!, () {
        if (mounted) {
          _refreshFinish = false;
          _scaleController.animateTo(0.0,
              duration: const Duration(milliseconds: 10));
        }
      });
    }
    _refreshFinish = finish;
  }
}