writeQ method

void writeQ(
  1. Object obj, {
  2. QuotationMark delimiter = QuotationMark.single,
})

Encloses obj with delimiter and writes the resulting String to the buffer.

Implementation

void writeQ(
  Object obj, {
  QuotationMark delimiter = QuotationMark.single,
}) {
  var string = '$obj';
  if (string.isEmpty) return;
  write(delimiter.symbol);
  write(string);
  write(delimiter.symbol);
}