HslColor.from constructor

HslColor.from(
  1. ColorModel color
)

Constructs a HslColor from color.

Implementation

factory HslColor.from(cm.ColorModel color) => color.toHslColor().cast();