Dialog constructor

Dialog({
  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 <dialog> element descriptor with open attribute shorthand.

Implementation

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