opacity property
If non-null, the value from the Animation is multiplied with the opacity of each image pixel before painting onto the canvas.
Implementation
Animation<double>? get opacity => _opacity;
Implementation
set opacity(Animation<double>? value) {
if (value == _opacity) {
return;
}
if (attached) {
_opacity?.removeListener(markNeedsPaint);
}
_opacity = value;
if (attached) {
value?.addListener(markNeedsPaint);
}
}