HslColor class
A class that represents an hsl color
Constructors
- HslColor({required num h, required num s, required num l})
-
const
- HslColor.fromJson(String source)
-
factory
-
HslColor.fromMap(Map<
String, dynamic> map) -
factory
- HslColor.fromRGB(int r, int g, int b)
-
Returns an HslColor from RGB
factory
Properties
- h → num
-
The hue of the color, 0 to 360
final
- hashCode → int
-
The hash code for this object.
no setteroverride
- l → num
-
The lightness of the color, 0% to 100%
final
- luminance → double
-
Returns the luminance of the color
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- s → num
-
The saturation of the color, 0% to 100%
final
Methods
-
copyWith(
{num? h, num? s, num? l}) → HslColor -
getRGBMap(
) → Map< String, int> - Returns a map with "r", "g", "b" keys that represents the rgb values of the color
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → String -
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
covariant HslColor other) → bool -
The equality operator.
override