fromString static method

Get a LightColorTemperatureDeltaAction from a given string value.

Implementation

static LightColorTemperatureDeltaAction fromString(String value) {
  return values.firstWhere(
    (action) => action.value == value,
    orElse: () => stop,
  );
}