nextQuery method

  1. @protected
QueryRows nextQuery(
  1. QueryDirection direction
)

Returns the next page of rows.

Implementation

@protected
QueryRows nextQuery(QueryDirection direction) {
  QueryRows rows = current;
  QueryRowPosition? start = rows.isEmpty
      ? null
      : (direction == QueryDirection.forward
            ? queryRowGetPosition(rows.last)
            : queryRowGetPosition(rows.first));
  return query(direction, start);
}