codeLeadingIndent function
Implementation
String codeLeadingIndent(String line) {
final buffer = StringBuffer();
for (final rune in line.runes) {
final char = String.fromCharCode(rune);
if (char != ' ' && char != '\t') {
break;
}
buffer.write(char);
}
return buffer.toString();
}