fromValue static method

RepositoryMode fromValue(
  1. String value
)

Implementation

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