addQuote method

void addQuote(
  1. String text, {
  2. String? citation,
})

Adds an HTML blockquote to the summary buffer.

Implementation

void addQuote(String text, {String? citation}) {
  final attributes = {
    if (citation != null) 'cite': citation,
  };

  addRaw(
    _wrap(tag: 'blockquote', content: text, attributes: attributes),
    addEOL: true,
  );
}