fromValue static method

EnvironmentType fromValue(
  1. String value
)

Implementation

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