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.

Annotations

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
Error palette property that defaults via init list to provided error parameter.
final
hashCode int
The hash code for this object.
no setteroverride
neutral TonalPalette
TonalPalette for neutral colors. Typically hues of primary.
final
neutralVariant TonalPalette
TonalPalette for neutralVariant colors. Typically hues of primary.
final
primary TonalPalette
TonalPalette for primary colors.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
secondary TonalPalette
TonalPalette for secondary colors.
final
tertiary TonalPalette
TonalPalette for tertiary colors.
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.