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(
super.buffer, {
super.entityMapping,
int? level,
String? indent,
String? newLine,
this.preserveWhitespace,
this.indentAttribute,
this.sortAttributes,
this.spaceBeforeSelfClose,
}) : level = level ?? 0,
indent = indent ?? ' ',
newLine = newLine ?? '\n';