I need to implement a "load more" functionality in my app. The problem is, I can't use the currentNo param because the pages will be generated dynamically in the server, and I can't be sure of how many elements each page will have. Therefore, I can't rely on the current size of the list to get the next page.
My proposal is to store an additional _pageCount param in ListViewWidget's state, and increment it every time a call to doRequest() is successful, and add it to the getLoadMoreUrl request as a new query param pageNo.