limit method
Creates and returns a new Query that's additionally limited to only return up to the specified number of documents. This overrides a previous limitToLast.
limit the maximum number of items to return.
Returns the created Query.
Implementation
Query<T> limit(int limit) {
return _withQuery(_builder.limit(query, limit));
}