LabColor constructor

const LabColor(
  1. num lightness,
  2. num a,
  3. num b, [
  4. int alpha = 255,
])

A color in the CIELAB color space.

lightness must be >= 0 and <= 100.

a and b must both be >= -128 and <= 127.

alpha must be >= 0 and <= 255.

Implementation

const LabColor(
  num lightness,
  num a,
  num b, [
  int alpha = 255,
])  : assert(lightness >= 0 && lightness <= 100),
      assert(a >= -128 && a <= 127),
      assert(b >= -128 && b <= 127),
      assert(alpha >= 0 && alpha <= 255),
      super(lightness, a, b, alpha);