writeString method
Implementation
void writeString(int indent, String string) {
if (string.contains("'")) {
buffer.write(
'${_generateIndent(indent)}"$string"',
);
} else {
buffer.write(
"${_generateIndent(indent)}'$string'",
);
}
}