PrettyElement constructor

PrettyElement(
  1. String type, {
  2. required List<PrettyNode> children,
  3. required List<PrettyMarker> markers,
  4. required Map<String, String> attributes,
  5. required SourceLocation start,
  6. required SourceLocation end,
  7. required bool isBlock,
  8. required SiblingPosition position,
})

Implementation

PrettyElement(
  this.type, {
  required this.children,
  required this.markers,
  required this.attributes,
  required this.start,
  required this.end,
  required this.isBlock,
  required this.position,
}) : lineEndings = [];