fromString static method

LightColorGamutType fromString(
  1. String value
)

Get a LightColorGamutType from a given string value.

Implementation

static LightColorGamutType fromString(String value) {
  return values.firstWhere(
    (gamutType) => gamutType.value == value,
    orElse: () => other,
  );
}