FeedEntry class final
A reproducible recipe for one theme: a generated (seed, family, engineVersion) or a hero id.
- Annotations
Constructors
- FeedEntry.generated({required int seed, required ThemeFamily family, int engineVersion = currentEngineVersion})
-
A generated theme.
const
- FeedEntry.hero(int heroId)
-
A hand-crafted hero.
const
- FeedEntry.ofSpec(ThemeSpec spec)
-
The entry for
spec(heroes by id, everything else by recipe).factory
Properties
- engineVersion → int
-
Generator version (generated entries).
final
- family → ThemeFamily?
-
Family (generated entries).
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- heroId → int?
-
Hero id (hero entries).
final
- isHero → bool
-
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- seed → int?
-
32-bit seed (generated entries).
final
- themeFamily → ThemeFamily
-
The theme's family (a hero's own family for hero entries).
no setter
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
resolve(
{bool accessible = false, ThemeGenerator generator = const ThemeGenerator()}) → ThemeSpec - Builds the theme. Prefer ThemeCache.specFor, which memoises.
-
toJson(
) → Map< String, Object?> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override