XyzColor constructor

const XyzColor(
  1. num x,
  2. num y,
  3. num z, [
  4. int alpha = 255,
])

A color in the CIEXYZ color space.

x, y, and z must all be >= 0.

alpha must be >= 0 and <= 255.

The XYZ values have been normalized to a 0 to 100 range that represents the whole of the sRGB color space, but have been left upwardly unbounded to allow to allow for conversions between the XYZ and LAB color spaces that fall outside of the sRGB color space's bounds.

Implementation

const XyzColor(
  this.x,
  this.y,
  this.z, [
  int alpha = 255,
])  : assert(x >= 0),
      assert(y >= 0),
      assert(z >= 0),
      assert(alpha >= 0 && alpha <= 255),
      super(alpha: alpha);