Element constructor

Element(
  1. String tag, [
  2. Map<String, String>? attributes,
  3. List<Node> children = const []
])

Implementation

Element(
  this.tag, [
  Map<String, String>? attributes,
  List<Node> children = const [],
])  : children = [...children],
      attributes = attributes ?? {};