MdcElement constructor

MdcElement(
  1. String tag, {
  2. Map<String, String?> attributes = const <String, String?>{},
  3. Iterable<MdcNode> children = const <MdcNode>[],
})

Creates an immutable element.

Implementation

MdcElement(
  this.tag, {
  Map<String, String?> attributes = const <String, String?>{},
  Iterable<MdcNode> children = const <MdcNode>[],
}) : attributes = Map<String, String?>.unmodifiable(attributes),
     children = List<MdcNode>.unmodifiable(children);