CorePalette class Null safety
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.
read-onlyoverride
- neutral → TonalPalette
-
final
- neutralVariant → TonalPalette
-
final
- primary → TonalPalette
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
- secondary → TonalPalette
-
final
- tertiary → TonalPalette
-
final
Methods
-
asList(
) → List< int> -
Returns a list of ARGB color
int
s from concatenated tonal palettes. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent 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
-
of(
int argb) → CorePalette - Create a CorePalette from a source ARGB color.