ThemeGenerator class final

Generates ThemeSpecs. Stateless and const; two instances always produce identical output.

Constructors

ThemeGenerator({int maxAttempts = 4})
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
maxAttempts → int
Palette attempts (attempt 0 plus palette/retry/1…) before the hero fallback.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildCandidate(int seed, ThemeFamily family, int engineVersion, {int attempt = 0, bool accessible = false, int? seedHueTenths, ThemeIntent? intent, bool intentCentred = false}) → ThemeSpec
One unvalidated attempt (tests and diagnostics; generate adds repair, retries and the hero fallback).
generate(int seed, ThemeFamily family, int engineVersion, {bool accessible = false, int? seedHueTenths, ThemeIntent? intent, bool intentCentred = false}) → ThemeSpec
The theme for (seed, family, engineVersion) — and the Accessible lock when accessible (labels and display text ≥ 7:1).
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited