ExpressiveThemeSpec class

A theme’s seed, scheme variant, contrast, motion and colour roles.

Use ExpressiveThemeData.fromBaked to build a theme from this record. ExpressiveThemeData.forApp looks it up by id.

Annotations

Constructors

ExpressiveThemeSpec({required String id, required int seed, required String variant, required double contrast, required ExpressiveMotionScheme motion, required ExpressiveExpression expression, required Map<String, int> light, required Map<String, int> dark, Map<String, int> statusLight = const <String, int>{}, Map<String, int> statusDark = const <String, int>{}})
A theme spec of the given record.
const

Properties

contrast → double
The contrast level the colours were baked at: 0, 0.5 or 1.
final
dark → Map<String, int>
Every colour role in dark. Baked, never an inversion of light.
final
expression → ExpressiveExpression
The expression budget.
final
hashCode → int
The hash code for this object.
no setterinherited
id → String
The theme's id: its themes/<id>/ directory, a lower-case slug.
final
light → Map<String, int>
Every colour role in light, by ExpressiveColorRole name, as ARGB.
final
motion → ExpressiveMotionScheme
The motion scheme.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
seed → int
The seed colour, ARGB.
final
statusDark → Map<String, int>
The status tones in dark. Baked, never an inversion of statusLight.
final
statusLight → Map<String, int>
The status tones in light, by name (success, onSuccess, successContainer, onSuccessContainer, and the same for warning), as ARGB: ExpressiveThemeData.status. Empty for a spec baked without them, which then wears the default preset's.
final
variant → String
The dynamic-scheme variant: tonalSpot, neutral, vibrant or expressive.
final

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