startAtDocument method

Query startAtDocument(
  1. DocumentSnapshot documentSnapshot
)

Creates and returns a new Query that starts at the provided document (inclusive). 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.

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

Implementation

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