I would like to basically add two colors together as if I were to do the following with a Canvas object:
canvas.drawPaint(Paint()..color = colorB);
canvas.drawPaint(Paint()..color = colorA);
Essentially, I have a background color colorA and another color colorB. I want to get a combinedColor that would be the result from painting colorA onto colorB but without using the canvas.
I tried the following, but it is not implemented:
final combinedColor = colorA + colorB;
For example, if I have a semi-transparent colorA and another color that I want to paint colorA on, the other color should act as a background, i.e. as if it had full opacity itself - basically the way you would expect.
How do I add together colors like this?