AutocompleteSingleResult class

Single item result of an autocomplete search on the Elastic Search API.

Inheritance

Constructors

AutocompleteSingleResult({required String id, required String text, required String taxonomyNameAsString})
const
AutocompleteSingleResult.fromJson(Map<String, dynamic> json)
factory

Properties

hashCode int
The hash code for this object.
no setterinherited
id String
Tag, e.g. 'en:margherita-pizza'.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
taxonomyName TaxonomyName?
Taxonomy name, if taxonomyNameAsString is valid.
no setter
taxonomyNameAsString String
Taxonomy name off tag, e.g. 'category'.
final
text String
Localized text, e.g. 'Pizza au fromage et aux tomates'.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toData() Map<String, String>
inherited
toJson() Map<String, dynamic>
override
toString() String
A string representation of this object.
inherited
toValueString() String
Returns all values as a String separated by a hyphen value1 - value2 - value3
inherited

Operators

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