FancyColor extension Null safety

on

Properties

contrastColor Color
A pure Color contrasting with this one (i.e., Colors.black or Colors.white), depending on the estimatedBrightness.
read-only
contrastSystemUiOverlayStyle SystemUiOverlayStyle
The SystemUiOverlayStyle providing the most contrast on this color.
read-only
estimatedBrightness Brightness
Returns the estimated Brightness of this color based on its luminance.
read-only
hsl HSLColor
Shortcut for HSLColor.fromColor(color).
read-only
hsv HSVColor
Shortcut for HSVColor.fromColor(color).
read-only
isDark bool
true if the estimatedBrightness is Brightness.dark, false otherwise.
read-only
isLight bool
true if the estimatedBrightness is Brightness.light, false otherwise.
read-only
isOpaque bool
true if this color is fully opaque, i.e. has an opacity of 1.0.
read-only

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.