TagflowElement constructor

const TagflowElement({
  1. required String tag,
  2. String? textContent,
  3. List<TagflowNode>? children,
  4. Map<String, String>? attributes,
  5. TagflowNode? parent,
})

Creates a new TagflowElement instance.

Implementation

const TagflowElement({
  required super.tag,
  super.textContent,
  List<TagflowNode>? children,
  Map<String, String>? attributes,
  super.parent,
}) : _children = children ?? const [],
     _attributes = attributes ?? const {};