FancyColor extension
- on
Properties
- contrastColor → Color
-
A pure Color contrasting with this one (i.e., Colors.black or
Colors.white), depending on the estimatedBrightness.
no setter
- contrastSystemUiOverlayStyle → SystemUiOverlayStyle
-
The SystemUiOverlayStyle providing the most contrast on this color.
no setter
- estimatedBrightness → Brightness
-
Returns the estimated Brightness of this color based on its luminance.
no setter
- hsl → HSLColor
-
Shortcut for
HSLColor.fromColor(color)
.no setter - hsv → HSVColor
-
Shortcut for
HSVColor.fromColor(color)
.no setter - isDark → bool
-
true
if the estimatedBrightness is Brightness.dark,false
otherwise.no setter - isLight → bool
-
true
if the estimatedBrightness is Brightness.light,false
otherwise.no setter - isOpaque → bool
-
true
if this color is fully opaque, i.e. has anopacity
of1.0
.no setter
Methods
-
alphaBlendOn(
Color background) → Color -
Shortcut for
Color.alphaBlend(color, background)
. -
withAdditionalAlpha(
int alpha) → Color -
Apply
alpha
in addition to the existing alpha by multiplying them. -
withAdditionalOpacity(
double opacity) → Color -
Apply
opacity
in addition to the existing opacity by multiplying them.