limit method

QueryReference limit(
  1. int count
)

Returns QueryReference that's additionally limited to only return up to the specified number of documents.

Implementation

QueryReference limit(int count) {
  _structuredQuery.limit = Int32Value()..value = count;
  return this;
}