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