A layer's paint that fades everything drawn in the layer to opacity, 0–1.
opacity
0
1
ui.Paint fadePaint(double opacity) => ui.Paint()..color = ui.Color.from(alpha: opacity, red: 0, green: 0, blue: 0);