opacity method

void opacity(
  1. double opacity
)

Implementation

void opacity(double opacity) => _opacity = opacity;