fromXyz method Null safety

int fromXyz (
  1. num x,
  2. num y,
  3. num z
)

Create a color value from XYZ values.

Implementation

static int fromXyz(num x, num y, num z) {
  final rgb = xyzToRgb(x, y, z);
  return getColor(rgb[0], rgb[1], rgb[2]);
}