dispatchLoadMoreEvent method

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

Implementation

dispatchLoadMoreEvent(String url, List<InfiniteScrollPODO> oldData) async {
  this.emit(FetchDataState.loading(oldData: oldData, isLoadMore: true));
  await Future.delayed(Duration(seconds: 3));
  await this.fetchDataJoin(url, oldData);
}