GeneratedColors class
Generated color scales and variants.
Returned by FlyColorGenerator.generate with all generated color scales and utility colors for use in your application.
Contains:
- accentScale - 12-step accent color scale
- grayScale - 12-step gray color scale
- accentScaleAlpha - Alpha variants of accent scale
- grayScaleAlpha - Alpha variants of gray scale
- accentContrast - Contrast color for text on accent backgrounds
- accentSurface - Surface color variant
- background - The background color used for generation
See FlyColorGenerator for usage examples.
Constructors
Properties
- accentContrast → Color
-
final
-
accentScale
→ List<
Color> -
final
-
accentScaleAlpha
→ List<
Color> -
final
- accentSurface → Color
-
final
- background → Color
-
final
-
grayScale
→ List<
Color> -
final
-
grayScaleAlpha
→ List<
Color> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
colorToHex(
Color color) → String - Get hex string for a color
-
colorToHexWithAlpha(
Color color) → String - Get hex string for a color with alpha (8-character format: #RRGGBBAA).
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> - Get all colors as a map.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited