ffRefreshCompleted method

  1. @override
dynamic ffRefreshCompleted({
  1. RefreshResultStatus? resultStatus = RefreshResultStatus.status_result,
})
override

刷新顶部结束

Implementation

@override
ffRefreshCompleted(
    {RefreshResultStatus? resultStatus = RefreshResultStatus.status_result}) {
  switch (resultStatus) {
    case RefreshResultStatus.status_result:
      {
        refreshController.refreshCompleted();
        refreshController.resetNoData();
        break;
      }
    case RefreshResultStatus.status_noData:
      {
        refreshController.refreshCompleted();
        break;
      }
    case RefreshResultStatus.status_timeout:
      {
        refreshController.refreshFailed();
        break;
      }
    case RefreshResultStatus.status_netErr:
      {
        refreshController.refreshFailed();
        break;
      }
  }
}