endAtDocument abstract method

Query<T> endAtDocument(
  1. DocumentSnapshot<Object?> documentSnapshot
)

Creates and returns a new Query that ends 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.

Cannot be used in combination with endBefore, endBeforeDocument, or endAt, but can be used in combination with startAt, startAfter, startAtDocument and startAfterDocument.

See also:

Implementation

Query<T> endAtDocument(
  // Voluntarily accepts any DocumentSnapshot<T>
  DocumentSnapshot documentSnapshot,
);