fromValue static method

HashType fromValue(
  1. String value
)

Implementation

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