writeString method

void writeString(
  1. int indent,
  2. String string
)

Implementation

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