next method

Future next()

Implementation

Future<dynamic> next() async {
  while (_result.isEmpty && _hasMore) {
    await _more();
  }
  if (_result.isEmpty) {
    return null;
  }

  return _result.removeAt(0);
}