ExpressiveArtwork class
Looks up a picture’s colour scheme for the active app theme.
Use retint to apply the scheme to a page headed by that picture.
- 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? -
The artwork colours for
slotattheme’s brightness and 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