endAt method

Query<QueryJsImpl> endAt({
  1. DocumentSnapshot? snapshot,
  2. List? fieldValues,
})

Creates a new Query where the results end at the provided document (inclusive). The end position is relative to the order of the query. The document must contain all of the fields provided in the orderBy of this query.

The DocumentSnapshot parameter is the snapshot of the document you want the query to end at. Or the list of fieldValues to end this query at, in order of the query's order by.

Returns non-null created Query.

Implementation

Query endAt({DocumentSnapshot? snapshot, List<dynamic>? fieldValues}) =>
    Query.fromJsObject(
        _wrapPaginatingFunctionCall('endAt', snapshot, fieldValues));