action property

String? action

Alert effect for the light.

Must be from actionValues.

Throws InvalidValueException if actionValue is not found within actionValues.

Implementation

String? get action => _action;
void action=(String? actionValue)

Implementation

set action(String? actionValue) {
  if (actionValue == null ||
      Validators.isValidValue(actionValue, actionValues)) {
    _action = actionValue;
  } else {
    throw InvalidValueException.withValue(actionValue, actionValues);
  }
}