color property

Color color

The color of the Annotation.

Implementation

Color get color => _color;
void 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();
    }
  }
}