withAlpha method

  1. @override
XyzColor withAlpha(
  1. int alpha
)
override

Returns this XyzColor modified with the provided alpha value.

Implementation

@override
XyzColor withAlpha(int alpha) {
  assert(alpha >= 0 && alpha <= 255);
  return XyzColor(x, y, z, alpha);
}