setAlpha function Null safety
Returns a new color where the alpha channel of color
has been replaced
by value
.
Implementation
int setAlpha(int color, int value) =>
(color & 0x00ffffff) | (clamp255(value) << 24);
Returns a new color where the alpha channel of color
has been replaced
by value
.
int setAlpha(int color, int value) =>
(color & 0x00ffffff) | (clamp255(value) << 24);