QueryResult constructor

QueryResult(
  1. {@required Collection collection,
  2. @required Query query,
  3. @required List<Snapshot> snapshots,
  4. int count,
  5. Object vendorData}
)

Implementation

QueryResult({
  @required this.collection,
  @required this.query,
  @required List<Snapshot> snapshots,
  this.count,
  this.vendorData,
})  : assert(collection != null),
      assert(query != null),
      assert(snapshots != null),
      _snapshots = snapshots,
      _items = null,
      suggestedQueries = const <SuggestedQuery>[];