action property

String? get action

Alert effect for the light.

Must be from actionValues.

Throws InvalidValueException if actionValue is not found within actionValues.

Implementation

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

Implementation

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