DynamicColor class
Constructors
- DynamicColor({required TonalPalette palette(DynamicScheme), required double tone(DynamicScheme), bool isBackground = false, DynamicColor background(DynamicScheme)?, DynamicColor secondBackground(DynamicScheme)?, double? contrast, ToneDeltaPair toneDeltaPair(DynamicScheme)?})
Properties
- background → DynamicColor Function(DynamicScheme)?
-
final
- contrast → double?
-
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isBackground → bool
-
final
- palette → TonalPalette Function(DynamicScheme)
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- secondBackground → DynamicColor Function(DynamicScheme)?
-
final
- tone → double Function(DynamicScheme)
-
final
- toneDeltaPair → ToneDeltaPair Function(DynamicScheme)?
-
final
Methods
-
getArgb(
DynamicScheme scheme) → int -
getHct(
DynamicScheme scheme) → Hct -
getTone(
DynamicScheme scheme) → double -
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
Static Methods
-
enableLightForeground(
double tone) → double -
foregroundTone(
double bgTone, double ratio) → double -
toneAllowsLightForeground(
double tone) → bool -
tonePrefersLightForeground(
double tone) → bool