fromValue static method

ThresholdDirection fromValue(
  1. String value
)

Implementation

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