HierarchicalFilter class final
Filter over a hierarchy of facet attributes.
Create a hierarchical filter
const level0 = 'category.lvl0';
const level1 = 'category.lvl1';
final filterShoes = Filter.facet(level0, 'Shoes');
final filterShoesRunning = Filter.facet(level1, 'Shoes > Running');
final hierarchicalFilter = HierarchicalFilter(
[level0, level1],
[filterShoes, filterShoesRunning],
filterShoesRunning,
);
```
Constructors
-
HierarchicalFilter(List<
String> attributes, List<FilterFacet> path, FilterFacet filter) - Creates an HierarchicalFilter instance.
Properties
-
attributes
→ List<
String> -
Attributes names.
final
- filter → FilterFacet
-
Filter facet value.
final
- hashCode → int
-
The hash code for this object.
no setteroverride
-
path
→ List<
FilterFacet> -
Filter facets path.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
copyWith(
{List< String> ? attributes, List<FilterFacet> ? path, FilterFacet? filter}) → HierarchicalFilter - Make a copy of the numeric filter.
-
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