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