operator + method
Color Addition Operator
Add the red, green, and blue channels
of other
with those of this Color
.
The resultant alpha is maintained from this
.
Implementation
// /// To *also add* the `alpha` from each `Color`, see [&].
Color operator +(Color other) => Color.fromARGB(
alpha,
(red + other.red).restricted,
(green + other.green).restricted,
(blue + other.blue).restricted,
);