startAfterDocument abstract method

Query<T> startAfterDocument(
  1. DocumentSnapshot<Object?> 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<T> startAfterDocument(
  // Voluntarily accepts any DocumentSnapshot<T>
  DocumentSnapshot documentSnapshot,
);