withAlpha method
Returns this OklabColor
modified with the provided alpha
value.
Implementation
@override
OklabColor withAlpha(int alpha) {
assert(alpha >= 0 && alpha <= 255);
return OklabColor(lightness, a, b, alpha);
}
Returns this OklabColor
modified with the provided alpha
value.
@override
OklabColor withAlpha(int alpha) {
assert(alpha >= 0 && alpha <= 255);
return OklabColor(lightness, a, b, alpha);
}