indexOf<T> static method
Implementation
static int indexOf<T>(List<T> enumValues, String value) {
final T? fromStringResult = fromString<T>(enumValues, value);
if (fromStringResult == null) {
return -1;
} else {
return enumValues.indexOf(fromStringResult);
}
}