moveNextPage method
Implementation
FutureOr<bool> moveNextPage() {
final nextPage = pageGenerator!(bufferSize, (bufferSize * _page++));
if (nextPage is Future<List<T>>) {
_pageFuture = nextPage;
return nextPage.then((_nextList) {
_pageFuture = null;
_pageList = _nextList;
_currIter = _nextList.iterator;
return _currIter!.moveNext() == true;
});
} else {
_pageFuture = null;
_pageList = nextPage;
_currIter = _pageList!.iterator;
return _currIter!.moveNext() == true;
}
}