QueryResult.withDetails constructor

QueryResult.withDetails(
  1. {@required Collection collection,
  2. @required Query query,
  3. @required List<QueryResultItem> items,
  4. int count,
  5. List<SuggestedQuery> suggestedQueries,
  6. Object vendorData}
)

Implementation

QueryResult.withDetails({
  @required this.collection,
  @required this.query,
  @required List<QueryResultItem> items,
  this.count,
  this.suggestedQueries,
  this.vendorData,
})  : assert(collection != null),
      assert(query != null),
      assert(items != null),
      _snapshots = null,
      _items = items;