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:

See FlyColorGenerator for usage examples.

Constructors

GeneratedColors({required List<Color> accentScale, required List<Color> accentScaleAlpha, required List<Color> grayScale, required List<Color> grayScaleAlpha, required Color accentContrast, required Color accentSurface, required Color background})

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