withOpacity abstract method

Gradient withOpacity(
  1. double opacity
)

Returns a new Gradient with each color set to the given opacity.

Implementation

Gradient withOpacity(double opacity);