colorValue property Null safety

int colorValue

Implementation

int get colorValue => _colorValue;
void colorValue=(int value)

Change the _colorValue field value. colorValueChanged will be invoked only if the field's value has changed.

Implementation

set colorValue(int value) {
  if (_colorValue == value) {
    return;
  }
  int from = _colorValue;
  _colorValue = value;
  if (hasValidated) {
    colorValueChanged(from, value);
  }
}