fromString static method

LightPowerUpColorMode fromString(
  1. String value
)

Get a LightPowerUpColorMode from a given string value.

Implementation

static LightPowerUpColorMode fromString(String value) {
  return values.firstWhere(
    (mode) => mode.value == value,
    orElse: () => colorTemperature,
  );
}