fadePaint function

Paint fadePaint(
  1. double opacity
)

A layer's paint that fades everything drawn in the layer to opacity, 0–1.

Implementation

ui.Paint fadePaint(double opacity) => ui.Paint()..color = ui.Color.from(alpha: opacity, red: 0, green: 0, blue: 0);