Suggestion class

Represents a suggestion object.

Constructors

Suggestion(String label, String value, {bool isRecentSearch = false, Map? source, int? clickId, bool isPopularSuggestion = false})

Properties

clickId int?
Represents the click position, useful to record click analytics.
final
hashCode int
The hash code for this object.
no setterinherited
isPopularSuggestion bool
Represents that if a suggestion is a type of popular suggestion.
getter/setter pair
isRecentSearch bool
Represents that if a suggestion is a type of recent search.
final
label String
Suggestion label to display in UI.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
source Map?
The source object from Elasticsearch response.
final
value String
Suggestion value to perform query.
final

Methods

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

Operators

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