opacity property

Animation<double>? opacity

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;
void opacity=(Animation<double>? value)

Implementation

set opacity(Animation<double>? value) {
  if (value == _opacity) {
    return;
  }

  if (attached) {
    _opacity?.removeListener(markNeedsPaint);
  }
  _opacity = value;
  if (attached) {
    value?.addListener(markNeedsPaint);
  }
}