Details constructor

Details({
  1. String? className,
  2. String? style,
  3. Map<String, String>? attrs,
  4. List<BloomNode> children = const [],
  5. Map<String, BloomEventHandler>? on,
  6. bool? open,
})

Creates a <details> element descriptor with open attribute shorthand.

Implementation

Details({super.className, super.style, Map<String, String>? attrs, super.children = const [], super.on, bool? open})
    : super('details', attrs: _mergeAttrs(attrs, {if (open == true) 'open': 'open'}));