opacity property
double
opacity
The opacity of the sprite in the range 0.0 to 1.0.
mySprite.opacity = 0.5;
Implementation
double get opacity => _opacity;
Implementation
set opacity(double opacity) {
assert(opacity >= 0.0 && opacity <= 1.0);
_opacity = opacity;
}