color property

Color get color

The color of the Annotation.

Implementation

Color get color => _color;
set color (Color newValue)

Implementation

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