CmykColor constructor
A color in the CMYK color space.
cyan, magenta, yellow, and black
must all be >= 0
and <= 100
.
alpha
must be >= 0
and <= 255
.
Implementation
const CmykColor(
this.cyan,
this.magenta,
this.yellow,
this.black, [
int alpha = 255,
]) : assert(cyan >= 0 && cyan <= 100),
assert(magenta >= 0 && magenta <= 100),
assert(yellow >= 0 && yellow <= 100),
assert(black >= 0 && black <= 100),
assert(alpha >= 0 && alpha <= 255),
super(alpha: alpha);