OklabColor.from constructor

OklabColor.from(
  1. ColorModel color
)

Constructs an OklabColor from color.

Implementation

factory OklabColor.from(cm.ColorModel color) => color.toOklabColor().cast();