dispatchRefreshEvent method

dynamic dispatchRefreshEvent(
  1. String url,
  2. List<InfiniteScrollPODO> oldData
)

Implementation

dispatchRefreshEvent(String url, List<InfiniteScrollPODO> oldData) async {
  resetPage();
  this.emit(FetchDataState.loading(oldData: oldData));
  await Future.delayed(Duration(seconds: 3));
  await this.fetchDataOnce(url);
}