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 if leadingHashSign is set to true (default is true).
withCustomOpacity(double opacity) Color

Available on Color, provided by the CustomOpacityAndShade extension

Apply a custom opacity value (0.0–1.0).