fromValue static method

TextFormat fromValue(
  1. String value
)

Implementation

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