NodeV0 constructor

NodeV0({
  1. required String type,
  2. Attributes? attributes,
  3. NodeV0? parent,
  4. 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;
  }
}