ThemeResolver class abstract final

Resolves ThemeSpecs, memoising the last few so the same spec always yields the identical CalcThemeData (cheap ==, no rebuild churn).

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited

Methods

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

Static Methods

clearMemo() → void
Clears the memo (tests).
prepare(ThemeSpec spec, Iterable<Size> cellSizes) → CalcThemeData
Resolves spec and builds its key-shape morphs for cellSizes ahead of a theme commit (call when the theme enters the prefetch queue).
resolve(ThemeSpec spec, {bool highContrast = false, GlassRendering glass = GlassRendering.standard}) → CalcThemeData
The CalcThemeData for spec. highContrast (platform setting) selects the plain theme's high-contrast variants; generated themes get their high-contrast treatment from the accessible lock instead.

Constants

memoCapacity → const int
Specs kept in the memo.