HexColor extension

on

Properties

swatch → MaterialColor

Available on Color, provided by the HexColor extension

no setter

Methods

toHex({bool leadingHashSign = true}) → String

Available on Color, provided by the HexColor extension

Prefixes a hash sign if leadingHashSign is set to true (default is true).

Static Methods

fromHex(String? hexString) → Color

Available on Color, provided by the HexColor extension

String is in the format "aabbcc" or "ffaabbcc" with an optional leading "#". Returns RED in case of a null hexString.
getHex(String hexString) → int

Available on Color, provided by the HexColor extension

toSwatch(String hexString) → MaterialColor

Available on Color, provided by the HexColor extension