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