startAfterDocument method

Query startAfterDocument(
  1. DocumentSnapshot documentSnapshot
)

Creates and returns a new Query that starts after the provided document (exclusive). The starting position is relative to the order of the query. The documentSnapshot must contain all of the fields provided in the orderBy of this query.

Calling this method will replace any existing cursor "start" query modifiers.

Implementation

Query startAfterDocument(DocumentSnapshot documentSnapshot) {
  Map<String, dynamic> results = _assertQueryCursorSnapshot(documentSnapshot);
  return Query._(firestore,
      _delegate.startAfterDocument(results['orders'], results['values']));
}