Results class Null safety

Represents the response for QueryType.search, QueryType.geo and QueryType.range type of SearchController.

Constructors

Results(List<Map<String, dynamic>> data)

Properties

customData Map?
read-only
data List<Map<String, dynamic>>
An array of results obtained from the applied query.
read / write
hashCode int
The hash code for this object. [...]
read-only, inherited
hidden int
Number of hidden results found.
read-only
numberOfResults int
Total number of results found.
read-only
parseResults ↔ (List<Map<String, dynamic>> Function?(List<Map> results, [List<Map>? sourceData])?)
To parse the results.
read / write
Number of promoted results found.
read-only
promotedData List<Map>
An array of promoted results obtained from the applied query.
read-only
raw Map?
Raw response returned by ES query
read / write
rawData Map?
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
time int
Total time taken by request (in ms).
read-only

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
setData(List<Map<String, dynamic>> data) → void
setRaw(Map? rawResponse) → void
Method to set the raw response form Elasticsearch
toString() String
A string representation of this object. [...]
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited