XmlPrettyWriter constructor
XmlPrettyWriter(
- StringSink buffer, {
- XmlEntityMapping? entityMapping,
- int? level,
- String? indent,
- String? newLine,
- Predicate<
XmlNode> ? preserveWhitespace, - Predicate<
XmlAttribute> ? indentAttribute, - Comparator<
XmlAttribute> ? sortAttributes, - 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);