toStringList<T> function

List<String> toStringList<T>(
  1. Iterable<T> l
)

Convert all elements to Strings.

Implementation

List<String> toStringList<T>(Iterable<T> l) {
  List<String> result = [];

  for (var v in l) {
    result.add(v.toString());
  }

  return result;
}