toList<T> static method

List<String> toList<T>(
  1. List<T> enumValues
)

Implementation

static List<String> toList<T>(List<T> enumValues) {
  final List<String> _enumList =
      enumValues.map((T t) => EnumToString.convertToString(t)).toList();

  final List<String> output = <String>[];
  for (final String value in _enumList) {
    output.add(value);
  }
  return output;
}