I'm drawing to a Canvas in Flutter using drawImageRect:
canvas.drawImageRect(image, sourceRect, destRect, _paint);
I have an Opacity value (a double between 0 and 1). How do I paint the image using this value (so that 0 is not visible and 0.5 is half-opacity)?