details function
The <details> HTML element creates a disclosure widget in which information is visible only when the widget is toggled into an "open" state. A summary or label must be provided using the <summary> element.
open
: Indicates whether or not the details — that is, the contents of the <details> element — are currently visible.
Implementation
Component details(List<Component> children,
{bool? open,
Key? key,
String? id,
String? classes,
Styles? styles,
Map<String, String>? attributes,
Map<String, EventCallback>? events}) {
return DomComponent(
tag: 'details',
key: key,
id: id,
classes: classes,
styles: styles,
attributes: {
...attributes ?? {},
if (open == true) 'open': '',
},
events: events,
children: children,
);
}