isRefresh property

set isRefresh (bool value)

Implementation

set isRefresh(bool value) {
  if (_isRefresh != value) {
    _isRefresh = value;
    if (_isRefresh) {
      _mergeController.forward();
      _timerRun();
    } else {
      _timerStop();
      _timerValue = 0.0;
      // 初始化偏移量
      _cloud1Offset = _cloudDefaultOffset;
      _cloud2Offset = _cloudDefaultOffset;
      _cloud3Offset = _cloudDefaultOffset;
      _umbrellaRotateValue = 0.0;
      _umbrellaOffsetX = 0.0;
      _umbrellaOffsetY = 0.0;
      _mergeController.reverse(from: 0.0);
    }
  }
}