ElNode constructor

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

Creates an element descriptor with tag and optional styling, attributes, event handlers, and child descriptors.

Implementation

const ElNode(
  this.tag, {
  this.text,
  this.className,
  this.style,
  this.attrs,
  this.on,
  this.children = const [],
});