refreshFinish property

set refreshFinish (bool finish)

Implementation

set refreshFinish(bool finish) {
  if (_refreshFinish != finish) {
    if (finish && widget.float) {
      Future.delayed(widget.completeDuration! - const Duration(milliseconds: 400), () {
        if (mounted) {
          _floatBackController.forward();
        }
      });
      Future.delayed(widget.completeDuration!, () {
        _floatBackDistance = null;
        _refreshFinish = false;
      });
    }
    _refreshFinish = finish;
  }
}