opacity property

double get opacity

The opacity of the Annotation.

Implementation

double get opacity => _opacity;
set opacity (double newValue)

Implementation

set opacity(double newValue) {
  if (_opacity != newValue) {
    final bool canChange = _onPropertyChange?.call(this, 'opacity') ?? true;
    if (canChange) {
      final double oldValue = _opacity;
      _opacity = newValue;
      _onPropertyChanged?.call(this, 'opacity', oldValue, newValue);
      _notify();
    }
  }
}