TagFilterGroup class final
Filter group of FilterTag filters.
Example
Disjunctive tags group, optionally named 'colors',
corresponding to (_tags:fantasy OR _tags:comedy)
:
final filterGroup = TagFilterGroup(
const FilterGroupID('genres', FilterOperator.or),
{
Filter.tag('fantasy'),
Filter.tag('comedy'),
},
);
The same example can be created using FilterGroup.tag
final filterGroup = FilterGroup.tag(
name: 'genres',
operator: FilterOperator.or,
filters: {
Filter.tag('fantasy'),
Filter.tag('comedy'),
},
);
- Implemented types
- Available Extensions
Constructors
-
TagFilterGroup(FilterGroupID groupID, Set<
FilterTag> _filters) -
Creates a TagFilterGroup instance.
const
Properties
- first → FilterTag
-
The first element.
no setterinherited
- groupID → FilterGroupID
-
Filter group ID (name and operator)
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- isEmpty → bool
-
Whether this collection has no elements.
no setterinherited
- isNotEmpty → bool
-
Whether this collection has at least one element.
no setterinherited
-
iterator
→ Iterator<
FilterTag> -
A new
Iterator
that allows iterating the elements of thisIterable
.no setterinherited - last → FilterTag
-
The last element.
no setterinherited
- length → int
-
The number of elements in this.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- single → FilterTag
-
Checks that this iterable has only one element, and returns that element.
no setterinherited
Methods
-
add(
FilterTag value) → bool -
Adds
value
to the set.inherited -
addAll(
Iterable< FilterTag> elements) → void -
Adds all
elements
to this set.inherited -
any(
bool test(FilterTag)) → bool -
Checks whether any element of this iterable satisfies
test
.inherited -
cast<
T> () → Set< T> -
A view of this iterable as an iterable of
R
instances.inherited -
clear(
) → void -
Removes all elements from the set.
inherited
-
contains(
Object? element) → bool -
Whether the collection contains an element equal to
element
.inherited -
containsAll(
Iterable< Object?> other) → bool -
Whether this set contains all the elements of
other
.inherited -
copyWith(
{FilterGroupID? groupID, Set< FilterTag> ? filters}) → TagFilterGroup -
Make a copy of the tag filters group.
override
-
difference(
Set< Object?> other) → Set<FilterTag> -
Creates a new set with the elements of this that are not in
other
.inherited -
elementAt(
int index) → FilterTag -
Returns the
index
th element.inherited -
every(
bool test(FilterTag)) → bool -
Checks whether every element of this iterable satisfies
test
.inherited -
expand<
T> (Iterable< T> f(FilterTag)) → Iterable<T> -
Expands each element of this Iterable into zero or more elements.
inherited
-
firstWhere(
bool test(FilterTag), {FilterTag orElse()?}) → FilterTag -
The first element that satisfies the given predicate
test
.inherited -
fold<
T> (T initialValue, T combine(T previousValue, FilterTag element)) → T -
Reduces a collection to a single value by iteratively combining each
element of the collection with an existing value
inherited
-
followedBy(
Iterable< FilterTag> other) → Iterable<FilterTag> -
Creates the lazy concatenation of this iterable and
other
.inherited -
forEach(
void f(FilterTag)) → void -
Invokes
action
on each element of this iterable in iteration order.inherited -
intersection(
Set< Object?> other) → Set<FilterTag> -
Creates a new set which is the intersection between this set and
other
.inherited -
join(
[String separator = '']) → String -
Converts each element to a String and concatenates the strings.
inherited
-
lastWhere(
bool test(FilterTag), {FilterTag orElse()?}) → FilterTag -
The last element that satisfies the given predicate
test
.inherited -
lookup(
Object? element) → FilterTag? -
If an object equal to
object
is in the set, return it.inherited -
map<
T> (T f(FilterTag)) → Iterable< T> -
The current elements of this iterable modified by
toElement
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
reduce(
FilterTag combine(FilterTag value, FilterTag element)) → FilterTag -
Reduces a collection to a single value by iteratively combining elements
of the collection using the provided function.
inherited
-
remove(
Object? value) → bool -
Removes
value
from the set.inherited -
removeAll(
Iterable< Object?> elements) → void -
Removes each element of
elements
from this set.inherited -
removeWhere(
bool test(FilterTag)) → void -
Removes all elements of this set that satisfy
test
.inherited -
retainAll(
Iterable< Object?> elements) → void -
Removes all elements of this set that are not elements in
elements
.inherited -
retainWhere(
bool test(FilterTag)) → void -
Removes all elements of this set that fail to satisfy
test
.inherited -
retype<
T> () → Set< T> -
inherited
-
singleWhere(
bool test(FilterTag), {FilterTag orElse()?}) → FilterTag -
The single element that satisfies
test
.inherited -
skip(
int n) → Iterable< FilterTag> -
Creates an Iterable that provides all but the first
count
elements.inherited -
skipWhile(
bool test(FilterTag)) → Iterable< FilterTag> -
Creates an
Iterable
that skips leading elements whiletest
is satisfied.inherited -
take(
int n) → Iterable< FilterTag> -
Creates a lazy iterable of the
count
first elements of this iterable.inherited -
takeWhile(
bool test(FilterTag)) → Iterable< FilterTag> -
Creates a lazy iterable of the leading elements satisfying
test
.inherited -
toList(
{bool growable = true}) → List< FilterTag> -
Creates a List containing the elements of this Iterable.
inherited
-
toSet(
) → Set< FilterTag> -
Creates a Set containing the same elements as this iterable.
inherited
-
toString(
) → String - A string representation of this object.
-
union(
Set< FilterTag> other) → Set<FilterTag> -
Creates a new set which contains all the elements of this set and
other
.inherited -
where(
bool test(FilterTag)) → Iterable< FilterTag> -
Creates a new lazy Iterable with all elements that satisfy the
predicate
test
.inherited -
whereType<
T> () → Iterable< T> -
Creates a new lazy Iterable with all elements that have type
T
.inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override