withAlpha method

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

Returns this CmykColor modified with the provided alpha value.

Implementation

@override
CmykColor withAlpha(int alpha) {
  assert(alpha >= 0 && alpha <= 255);
  return CmykColor(cyan, magenta, yellow, black, alpha);
}