TagflowElement constructor
const
TagflowElement({
- required String tag,
- String? textContent,
- List<
TagflowNode> ? children, - Map<
String, String> ? attributes, - 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 {};