LightHexColor extension

Selection of extensions to Color.

on

Properties

isWarm bool
This getter on the Color class that determines if the color is warm or not. We can use the Hue-Saturation-Value (HSV) representation of the color. A color is generally considered warm if its hue lies between 0 and 180 degrees.
no setter

Methods

toHex({bool leadingHashSign = true}) String
Returns this Color's hexcode.
toHexNoAlpha({bool leadingHashSign = true}) String
Returns this Color's hexcode without the alpha channel.
withLight(double opacity, {Color? background}) Color
Lightens this Color.

Static Methods

fromHex(String hexString) Color
Creates a Color from a String.