withAlpha method Null safety
- double alpha
Returns a copy of this color with the alpha parameter replaced with the given value.
Implementation
HSLColor withAlpha(double alpha) {
return HSLColor.fromAHSL(alpha, hue, saturation, lightness);
}
Returns a copy of this color with the alpha parameter replaced with the given value.
HSLColor withAlpha(double alpha) {
return HSLColor.fromAHSL(alpha, hue, saturation, lightness);
}