fromString static method
Get a LightPowerUpColorMode from a given string value
.
Implementation
static LightPowerUpColorMode fromString(String value) {
return values.firstWhere(
(mode) => mode.value == value,
orElse: () => colorTemperature,
);
}