printLines function
Implementation
String printLines(List<String> lines, int start, int end, int maxNumLength,
Settings settings) {
return lines
.sublist(start, end)
.asMap()
.map((i, line) =>
MapEntry(i, printLine(line, start + i + 1, maxNumLength, settings)))
.values
.join('\n');
}