collateListString function

String collateListString(
  1. List<String> str,
  2. [String separate = "\n"]
)

Implementation

@pragma("vm:prefer-inline")
String collateListString(List<String> str, [String separate = "\n"]) {
  StringBuffer buff = StringBuffer();
  for (String r in str) {
    buff.write(r);
    buff.write(separate);
  }
  return buff.toString();
}