opacity property Null safety

double opacity
inherited

Implementation

double get opacity => _opacity;
void opacity=(double value)
inherited

Change the _opacity field value. opacityChanged will be invoked only if the field's value has changed.

Implementation

set opacity(double value) {
  if (_opacity == value) {
    return;
  }
  double from = _opacity;
  _opacity = value;
  if (hasValidated) {
    opacityChanged(from, value);
  }
}