FeedEntry class final
A reproducible recipe for one theme: a generated (seed, family,
engineVersion , intent, centred) or a hero id.
- Annotations
Constructors
- FeedEntry.generated({required int seed, required ThemeFamily family, int engineVersion = currentEngineVersion, ThemeIntent? intent, bool centred = false})
-
A generated theme;
intent(engine v4+) steers it,centredputs it at the middle of the intent's ranges.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). A steered spec's entry takes ThemeSpec.name as its intent's name, so it regenerates the same spec.factory
Properties
- centred → bool
-
Whether a steered entry is generated centred on its intent.
final
- 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
- intent → ThemeIntent?
-
The steering intent (generated entries, engine v4+), without
families; null when unsteered.
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
-
This entry's share code: plain for heroes and unsteered themes, the
longer steered form for steered ones (its name is not in the code;
pass it to
formatThemeDeepLink).no setter - 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
Static Methods
-
fromJson(
Object? json) → FeedEntry? - Parses toJson output; null for entries this build cannot reproduce (unknown family or hero, a family the recipe's version never shipped, newer engine version).
- The entry a decoded share code (or link) names, or null when this build cannot reproduce it (unknown family or hero, unshipped family, newer engine version). A link's name becomes the steered intent's.