addDetails method

void addDetails(
  1. String label,
  2. String content
)

Adds a collapsible HTML details element to the summary buffer.

Implementation

void addDetails(String label, String content) {
  final element = _wrap(
    tag: 'details',
    content: '${_wrap(tag: 'summary', content: label)}$content',
  );

  addRaw(element, addEOL: true);
}