limit method

Query limit(
  1. int limit
)

Creates and returns a new Query that's additionally limited to only return up to the specified number of documents.

Implementation

Query limit(int limit) {
  assert(limit > 0, 'limit must be a positive number greater than 0');
  return Query._(firestore, _delegate.limit(limit));
}