NodeV0 constructor
NodeV0({
- required String type,
- Attributes? attributes,
- NodeV0? parent,
- LinkedList<
NodeV0> ? children,
Implementation
NodeV0({
required this.type,
Attributes? attributes,
this.parent,
LinkedList<NodeV0>? children,
}) : children = children ?? LinkedList<NodeV0>(),
_attributes = attributes ?? {} {
for (final child in this.children) {
child.parent = this;
}
}