CustomOpacityAndShade extension
- on
Methods
-
darker(
[double amount = .1]) → Color -
Available on Color, provided by the CustomOpacityAndShade extension
Returns a darker version of this color by moving closer to black. -
lighter(
[double amount = .1]) → Color -
Available on Color, provided by the CustomOpacityAndShade extension
Returns a lighter version of this color by moving closer to white. -
shadedColor(
{double shade = .1, Brightness brightness = Brightness.light}) → Color -
Available on Color, provided by the CustomOpacityAndShade extension
Returns a color that is a shade of this color. -
toHex(
{bool leadingHashSign = true}) → String -
Available on Color, provided by the CustomOpacityAndShade extension
Prefixes a hash sign ifleadingHashSignis set totrue(default istrue). -
withCustomOpacity(
double opacity) → Color -
Available on Color, provided by the CustomOpacityAndShade extension
Apply a custom opacity value (0.0–1.0).