ExpressiveArtworkScheme class
A picture’s light and dark colour roles at a given contrast.
source is the colour used to build the schemes. fallback identifies a scheme built from the app’s seed.
- Annotations
Constructors
Properties
- contrast → double
-
The contrast level the scheme was baked at: 0, 0.5 or 1.
final
-
dark
→ Map<
String, int> -
Every colour role in dark. Baked, never an inversion of light.
final
- fallback → bool
-
Whether the picture had no colour fit for a theme, so source is the
app's seed.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- image → String
-
The identifier of the source image.
final
-
light
→ Map<
String, int> -
Every colour role in light, by ExpressiveColorRole name, as ARGB.
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- slot → String
-
The media slot whose picture this is.
final
- source → int
-
The source colour the scheme was baked from, ARGB.
final
Methods
-
colors(
Brightness brightness) → ExpressiveColorScheme -
The scheme in
brightness. Throws a StateError unless it carries exactly the ExpressiveColorRoles. -
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