QueryResultItem<T> class

Item in a QueryResult.

final queryResult = await database.collection('Product').search();
for (var item in queryResult.items) {
  // ...
}
```

Constructors

QueryResultItem({@required Snapshot snapshot, double score, List<Snippet> snippets = const <Snippet>[], Object vendorData})
const

Properties

data Map<String, Object>
Data of the document. [...]
read-only
document Document
Document that matched.
read-only
hashCode int
The hash code for this object. [...]
read-only, override
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
score double
Optional score given by the underlying search engine. Developers may find it useful for debugging.
final
snapshot Snapshot
Snapshot of the document.
final
snippets List<Snippet>
Snippets of the document.
final
vendorData Object
Optional vendor-specific data received from the database. For example, a database adapter for Elasticsearch could expose JSON response received from the REST API of Elasticsearch.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(dynamic other) bool
The equality operator. [...]
override