Node constructor

Node(
  1. String tagName, [
  2. Map<String, dynamic> attributes = const {},
  3. Iterable<Node> children = const []
])

Implementation

Node(this.tagName,
    [Map<String, dynamic> attributes = const {},
    Iterable<Node> children = const []]) {
  this
    ..attributes.addAll(attributes)
    ..children.addAll(children);
}