pad function

List<String> pad(
  1. List<String> ls,
  2. String pad
)

Implementation

List<String> pad(List<String> ls, String pad) {
  return ls.map((e) => pad + e).toList();
}