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
themesandschemes.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 fortheme: at the contrast of the app themethemeis, in its brightness. Null whenthemeis 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 -
themewith its colours replaced byslot's picture's (colorsFor);themeitself 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