Facet class

A value of a given facet, together with its number of occurrences. Useful when an ordered list of facet values has to be presented to the user.

Available Extensions

Constructors

Facet(String value, int count, [String? highlighted])
Creates Facet instance.
const

Properties

count int
Number of times this value occurs for a given attribute.
final
hashCode int
The hash code for this object.
no setteroverride
highlighted String?
Highlighted value.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
value String
Name of the facet. Is equal to the value associated to an attribute.
final

Methods

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

Operators

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

Static Methods

fromList(List<Map<String, dynamic>> json) List<Facet>
fromMap(Map<String, dynamic> json) Map<String, List<Facet>>
Creates Map of attributes and Facet lists from json.