startAfter method
Creates a new Query where the results start after the provided document (exclusive). The starting 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 start after. Or the list of fieldValues
to
start this query after, in order of the query's order by.
Returns non-null created Query.
firestore().collection('cities')
.orderBy('name')
.orderBy('state')
.startAfter(fieldValues: ['Springfield', 'Missouri']);
Implementation
Query startAfter({DocumentSnapshot? snapshot, List<dynamic>? fieldValues}) =>
Query.fromJsObject(
_wrapPaginatingFunctionCall('startAfter', snapshot, fieldValues));