moveNext method
Implementation
FutureOr<bool> moveNext() {
final _next = _currPage?.moveNext() == true;
if (_next == true) return true;
final nextPage = pageGenerator(bufferSize, (bufferSize * _page++));
if (nextPage is Future<List<T>>) {
return nextPage.then((_next) {
_currPage = _next.iterator;
return _currPage!.moveNext();
});
} else {
_currPage = nextPage.iterator;
return _currPage?.moveNext() == true;
}
}