LabColor.fromHex constructor

LabColor.fromHex(
  1. String hex
)

Constructs a LabColor from color.

Implementation

factory LabColor.fromHex(String hex) =>
    ColorConverter.hexToRgb(hex).toLabColor();