FeedFilter class final
Which families the feed draws from (spec §6.1): "Surprise me" (every enabled family) or a chosen set.
- Annotations
Constructors
- FeedFilter.fromJson(Object? json)
-
Parses toJson output (unknown input → surprise me).
factory
-
FeedFilter.only(Iterable<
ThemeFamily> families) -
Only
families(disabled ones are ignored; empty → surprise me).factory - FeedFilter.surpriseMe()
-
Every enabled family.
const
Properties
-
families
→ List<
ThemeFamily> -
Allowed families in id order.
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- isSurpriseMe → bool
-
Whether this is "Surprise me".
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
allows(
ThemeFamily family) → bool -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override