onLoadData method

Future<void> onLoadData()

请求数据

Implementation

Future<void> onLoadData() async {
  if (this.isFirstPage) {
    dataList.clear();
  }
  hasNextPage = currentPageData.isNotEmpty && currentPageData.length >= pageSize;
  dataList.addAll(currentPageData);
  this.update();
}