XmlPrettyWriter constructor

XmlPrettyWriter(
  1. StringSink buffer, {
  2. XmlEntityMapping? entityMapping,
  3. int? level,
  4. String? indent,
  5. String? newLine,
  6. Predicate<XmlNode>? preserveWhitespace,
  7. Predicate<XmlAttribute>? indentAttribute,
  8. Comparator<XmlAttribute>? sortAttributes,
  9. Predicate<XmlNode>? spaceBeforeSelfClose,
})

Implementation

XmlPrettyWriter(
  StringSink buffer, {
  XmlEntityMapping? entityMapping,
  int? level,
  String? indent,
  String? newLine,
  this.preserveWhitespace,
  this.indentAttribute,
  this.sortAttributes,
  this.spaceBeforeSelfClose,
})  : level = level ?? 0,
      indent = indent ?? '  ',
      newLine = newLine ?? '\n',
      super(buffer, entityMapping: entityMapping);