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}
)

Implementation

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