HslColor.fromHex constructor
HslColor.fromHex(
- String hex
Constructs a HslColor from a RGB hex
color.
hex
is case-insensitive and must be 3
or 6
characters
in length, excluding an optional leading #
.
Implementation
factory HslColor.fromHex(String hex) => cm.HslColor.fromHex(hex).cast();