fromValue static method

ThresholdColor fromValue(
  1. String value
)

Implementation

static ThresholdColor fromValue(String value) {
  for (final item in ThresholdColor.values) {
    if (item.wireValue == value) {
      return item;
    }
  }
  throw ArgumentError('Unknown ThresholdColor value: $value');
}