fetchData method

dynamic fetchData(
  1. bool more
)

Implementation

fetchData(bool more) async {
  if (more) {
    pageIndex += 1;
  } else {
    pageIndex = 1;
    list.clear();
  }
}