valueOf<T> static method

T valueOf<T>(
  1. Iterable<T> values,
  2. String value
)

Implementation

static T valueOf<T>(Iterable<T> values, String value) {
  return values.where((e) => describeEnum(e!) == value).first;
}