ExpressiveCustomColors class

Named custom colour groups for each of an app's themes.

Annotations

Constructors

ExpressiveCustomColors({required List<String> names, required Map<String, ExpressiveCustomColorSet> themes})
Custom colours with the given names and themes.
const

Properties

hashCode → int
The hash code for this object.
no setterinherited
names → List<String>
Every colour's name, in the order the app declares them.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
themes → Map<String, ExpressiveCustomColorSet>
Each of the app's own themes' colours, by theme id, the default first.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
of(String name, ExpressiveThemeData theme) → ExpressiveCustomColor
Returns the named colour at theme's brightness. System presets use the default app theme's colours. Throws ArgumentError for an unknown name.
toString() → String
A string representation of this object.
inherited

Operators

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