ColorSpec class abstract interface

An interface defining all the necessary methods that could be different between specs.

Constructors

ColorSpec.fromSpecVersion(SpecVersion specVersion)
Get the correct color spec for a given spec version.
factory

Properties

background → DynamicColor
no setter
controlActivated → DynamicColor
no setter
controlHighlight → DynamicColor
no setter
controlNormal → DynamicColor
no setter
error → DynamicColor
no setter
errorContainer → DynamicColor
no setter
errorDim → DynamicColor?
no setter
errorPaletteKeyColor → DynamicColor
no setter
hashCode → int
The hash code for this object.
no setterinherited
inverseOnSurface → DynamicColor
no setter
inversePrimary → DynamicColor
no setter
inverseSurface → DynamicColor
no setter
neutralPaletteKeyColor → DynamicColor
no setter
neutralVariantPaletteKeyColor → DynamicColor
no setter
onBackground → DynamicColor
no setter
onError → DynamicColor
no setter
onErrorContainer → DynamicColor
no setter
onPrimary → DynamicColor
no setter
onPrimaryContainer → DynamicColor
no setter
onPrimaryFixed → DynamicColor
no setter
onPrimaryFixedVariant → DynamicColor
no setter
onSecondary → DynamicColor
no setter
onSecondaryContainer → DynamicColor
no setter
onSecondaryFixed → DynamicColor
no setter
onSecondaryFixedVariant → DynamicColor
no setter
onSurface → DynamicColor
no setter
onSurfaceVariant → DynamicColor
no setter
onTertiary → DynamicColor
no setter
onTertiaryContainer → DynamicColor
no setter
onTertiaryFixed → DynamicColor
no setter
onTertiaryFixedVariant → DynamicColor
no setter
outline → DynamicColor
no setter
outlineVariant → DynamicColor
no setter
primary → DynamicColor
no setter
primaryContainer → DynamicColor
no setter
primaryDim → DynamicColor?
no setter
primaryFixed → DynamicColor
no setter
primaryFixedDim → DynamicColor
no setter
primaryPaletteKeyColor → DynamicColor
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
scrim → DynamicColor
no setter
secondary → DynamicColor
no setter
secondaryContainer → DynamicColor
no setter
secondaryDim → DynamicColor?
no setter
secondaryFixed → DynamicColor
no setter
secondaryFixedDim → DynamicColor
no setter
secondaryPaletteKeyColor → DynamicColor
no setter
shadow → DynamicColor
no setter
surface → DynamicColor
no setter
surfaceBright → DynamicColor
no setter
surfaceContainer → DynamicColor
no setter
surfaceContainerHigh → DynamicColor
no setter
surfaceContainerHighest → DynamicColor
no setter
surfaceContainerLow → DynamicColor
no setter
surfaceContainerLowest → DynamicColor
no setter
surfaceDim → DynamicColor
no setter
surfaceTint → DynamicColor
no setter
surfaceVariant → DynamicColor
no setter
tertiary → DynamicColor
no setter
tertiaryContainer → DynamicColor
no setter
tertiaryDim → DynamicColor?
no setter
tertiaryFixed → DynamicColor
no setter
tertiaryFixedDim → DynamicColor
no setter
tertiaryPaletteKeyColor → DynamicColor
no setter
textHintInverse → DynamicColor
no setter
textPrimaryInverse → DynamicColor
no setter
textPrimaryInverseDisableOnly → DynamicColor
no setter
textSecondaryAndTertiaryInverse → DynamicColor
no setter
textSecondaryAndTertiaryInverseDisabled → DynamicColor
no setter

Methods

getErrorPalette(TonalPaletteSourceColor sourceColor, Variant variant, bool isDark, double contrastLevel, Platform platform, SpecVersion specVersion) → TonalPalette
getHct(DynamicScheme scheme, DynamicColor color) → Hct
getNeutralPalette(TonalPaletteSourceColor sourceColor, Variant variant, bool isDark, double contrastLevel, Platform platform, SpecVersion specVersion) → TonalPalette
getNeutralVariantPalette(TonalPaletteSourceColor sourceColor, Variant variant, bool isDark, double contrastLevel, Platform platform, SpecVersion specVersion) → TonalPalette
getPrimaryPalette(TonalPaletteSourceColor sourceColor, Variant variant, bool isDark, double contrastLevel, Platform platform, SpecVersion specVersion) → TonalPalette
getSecondaryPalette(TonalPaletteSourceColor sourceColor, Variant variant, bool isDark, double contrastLevel, Platform platform, SpecVersion specVersion) → TonalPalette
getTertiaryPalette(TonalPaletteSourceColor sourceColor, Variant variant, bool isDark, double contrastLevel, Platform platform, SpecVersion specVersion) → TonalPalette
getTone(DynamicScheme scheme, DynamicColor color) → double
highestSurface(DynamicScheme scheme) → DynamicColor
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