Hex extension
Color Extensions
- on
Properties
- getBrightness → double
-
Available on Color, provided by the Hex extension
Returns the brightness of the color.no setter - getLuminance → double
-
Available on Color, provided by the Hex extension
Returns the luminance of the color.no setter - isDark → bool
-
Available on Color, provided by the Hex extension
Returnstrue
if the color is dark, otherwisefalse
.no setter - isLight → bool
-
Available on Color, provided by the Hex extension
Returnstrue
if the color is light, otherwisefalse
.no setter
Methods
-
createMaterialColor(
) → MaterialColor - Creates a MaterialColor from the color.
-
darken(
[double amount = .1]) → Color -
Available on Color, provided by the Hex extension
Darken the color bypercentage
(0.0 to 1.0). -
lighten(
[double amount = .1]) → Color -
Available on Color, provided by the Hex extension
Lighten the color bypercentage
(0.0 to 1.0). -
toHex(
{bool leadingHashSign = true, bool includeAlpha = false}) → String - Converts the Flutter color to a hex string.