writeBlock method
Write a block of multiple lines with automatic indentation
Implementation
void writeBlock(String block) {
final indentStr = ' ' * (_spacesPerIndent * _currentIndent);
final lines = block.split('\n');
for (final line in lines) {
_buffer.write('$indentStr$line\n');
}
}