fromList<T> static method Null safety

List<T?> fromList<T>(
  1. List<T> enumValues,
  2. List valueList

Get a list of enums given a list of strings. Basically just EnumToString.fromString, but using lists

As with fromString it is not case sensitive

Eg. EnumToString.fromList(TestEnum.values, "valueOne", "value2"


static List<T?> fromList<T>(List<T> enumValues, List valueList) {
  return List<T?>.from(<T?>((item) => fromString(enumValues, item)));