ColorSwatch class

Constructors

ColorSwatch.new({required Color $50, required Color $100, required Color $200, required Color $300, required Color $400, required Color $500, required Color $600, required Color $700, required Color $800, required Color $900, required Color $950})
const

Properties

$100 → Color
final
$200 → Color
final
$300 → Color
final
$400 → Color
final
$50 → Color
final
$500 → Color
final
$600 → Color
final
$700 → Color
final
$800 → Color
final
$900 → Color
final
$950 → 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
value String
The color css value
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
withHue(double hue, {bool replace = true}) → Color
Returns a new color that matches this color, but with its hue modified.
withLightness(double lightness, {bool replace = true}) → Color
Returns a new color that matches this color, but with its lightness modified.
withOpacity(double opacity, {bool replace = true}) → Color
Returns a new color that matches this color, but with its opacity modified.
withValues({double? red, double? green, double? blue, double? alpha}) → Color
Returns a new color with the provided values replaced.

Operators

operator ==(Object other) bool
The equality operator.
inherited