MdcDocument constructor

MdcDocument({
  1. Iterable<MdcNode> nodes = const <MdcNode>[],
  2. Map<String, Object?> frontmatter = const <String, Object?>{},
})

Creates an immutable document.

Implementation

MdcDocument({
  Iterable<MdcNode> nodes = const <MdcNode>[],
  Map<String, Object?> frontmatter = const <String, Object?>{},
}) : nodes = List<MdcNode>.unmodifiable(nodes),
     frontmatter = _freezeMap(frontmatter);