ExpressiveArtwork class

An app's artwork: the slot-to-scheme table tools/expressive_tokens generates (lib/app/artwork.g.dart, appArtwork).

A page a picture heads mounts retint of its theme on an ExpressiveTheme around itself, and cross-fades between schemes with ExpressiveColorScheme.lerp on the theme's spring. Only colour changes: type, shape, motion and the expression budget stay the theme's.

Annotations

Constructors

ExpressiveArtwork({required Map<String, double> themes, required List<ExpressiveArtworkScheme> schemes})
Artwork of the given themes and schemes.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
schemes → List<ExpressiveArtworkScheme>
Every slot's scheme, at each contrast in themes.
final
slots → Set<String>
Every slot that has a scheme.
no setter
themes → Map<String, double>
Each of the app's own themes' contrast, by theme id.
final

Methods

colorsFor(String slot, ExpressiveThemeData theme) → ExpressiveColorScheme?
slot's scheme for theme: at the contrast of the app theme theme is, in its brightness. Null when theme is none of the app's own themes (a system preset, as the gate's robustness look wears), which a picture never retints. Throws an ArgumentError for a slot with no scheme, and a StateError when the slot was not baked at that theme's contrast.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retint(ExpressiveThemeData theme, String slot) → ExpressiveThemeData
theme with its colours replaced by slot's picture's (colorsFor); theme itself when it is none of the app's own.
toString() → String
A string representation of this object.
inherited

Operators

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