effect property

String get effect

Alert effect for the light.

Throws InvalidValueException if effect is not found within effectValues.

Implementation

String get effect => _effect;
set effect (String effect)

Implementation

set effect(String effect) {
  if (Validators.isValidValue(effect, effectValues)) {
    _effect = effect;
  } else {
    throw InvalidValueException.withValue(effect, effectValues);
  }
}