SearchBusinessFilter class abstract final

A filter that could be applied to search results.

Filters can be either boolean (that is Wi-Fi availability in a cafe) or enumerated (that is cuisine type in a restaurant). Enumerated filters support multiple selected values (OR-combined), to search, for example, for restaurants with Armenian or Georgian cuisine at once.

This class is used in two separate ways: server response contains all filters applicable to current search request and client can use some of these filters to get more specific results in the following search requests

Implemented types

Constructors

SearchBusinessFilter(String id, String? name, bool? disabled, Image? iconLight, Image? iconDark, bool? singleSelect, SearchBusinessFilterValues values)
factory

Properties

disabled bool?
The filter should not be used by the client, because filter is either used already (selected:true, disabled:true) or nothing would be found (selected:false, disabled:true).
no setter
hashCode int
The hash code for this object.
no setteroverride
iconDark Image?
no setter
iconLight Image?
no setter
id String
Filter id.
no setter
name String?
Human-readable filter name.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
singleSelect bool?
Only one of multiple available values should be selected.
no setter
values SearchBusinessFilterValues
Filter values.
no setter

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 ==(covariant SearchBusinessFilter other) bool
The equality operator.
override