TinyColor class
Constructors
- TinyColor(Color originalColor)
- TinyColor.fromColor(Color originalColor)
- TinyColor.fromHSL(HSLColor hsl)
-
factory
- TinyColor.fromHSLColor(HSLColor hsl)
-
factory
- TinyColor.fromHSV(HSVColor hsl)
-
factory
- TinyColor.fromHSVColor(HSVColor hsv)
-
factory
- TinyColor.fromRGB({required int r, required int g, required int b, int a = 255})
-
factory
- TinyColor.fromString(String string)
-
factory
Properties
- color → Color
-
no setter
- hashCode → int
-
The hash code for this object.
no setteroverride
- originalColor → Color
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
brighten(
[int amount = 10]) → TinyColor -
clone(
) → TinyColor -
complement(
) → TinyColor -
darken(
[int amount = 10]) → TinyColor -
desaturate(
[int amount = 10]) → TinyColor -
equals(
Object other) → bool -
getBrightness(
) → double -
getLuminance(
) → double -
greyscale(
) → TinyColor -
isDark(
) → bool -
isLight(
) → bool -
lighten(
[int amount = 10]) → TinyColor -
mix(
Color toColor, [int amount = 50]) → TinyColor -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
saturate(
[int amount = 10]) → TinyColor -
setAlpha(
int alpha) → TinyColor -
setOpacity(
double opacity) → TinyColor -
shade(
[int amount = 10]) → TinyColor -
spin(
double amount) → TinyColor -
tint(
[int amount = 10]) → TinyColor -
toColor(
) → Color -
toHex8(
) → String -
toHsl(
) → HSLColor -
toHSLColor(
) → HSLColor -
toHsv(
) → HSVColor -
toHSVColor(
) → HSVColor -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
override