CorePalette class

An intermediate concept between the key color for a UI theme, and a full color scheme. 5 tonal palettes are generated, all except one use the same hue as the key color, and all vary in chroma.

Constructors

CorePalette.fromList(List<int> colors)
Create a CorePalette from a fixed-size list of ARGB color ints representing concatenated tonal palettes.

Properties

error TonalPalette
final
hashCode int
The hash code for this object.
no setteroverride
neutral TonalPalette
final
neutralVariant TonalPalette
final
primary TonalPalette
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondary TonalPalette
final
tertiary TonalPalette
final

Methods

asList() List<int>
Returns a list of ARGB color ints from concatenated tonal palettes.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override

Static Methods

contentOf(int argb) CorePalette
Create a content CorePalette from a source ARGB color.
of(int argb) CorePalette
Create a CorePalette from a source ARGB color.

Constants

size → const int
The number of generated tonal palettes.