addList method

void addList(
  1. Iterable<String> items, {
  2. bool ordered = false,
})

Adds an HTML items list to the summary buffer.

Implementation

void addList(Iterable<String> items, {bool ordered = false}) {
  final listItems =
      items.map((item) => _wrap(tag: 'li', content: item)).join('');

  addRaw(_wrap(tag: ordered ? 'ol' : 'ul', content: listItems), addEOL: true);
}