addDetails method
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);
}