XmlPrettyWriter class Null safety

A visitor that writes XML nodes correctly indented and with whitespaces adapted.

Inheritance

Constructors

XmlPrettyWriter(StringSink buffer, {XmlEntityMapping? entityMapping, int? level, String? indent, String? newLine, Predicate<XmlNode>? preserveWhitespace, Predicate<XmlAttribute>? indentAttribute, Comparator<XmlAttribute>? sortAttributes})

Properties

buffer StringSink
final, inherited
entityMapping XmlEntityMapping
final, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
indent String
final
indentAttribute → Predicate<XmlAttribute>?
final
level int
read / write
newLine String
final
preserveWhitespace → Predicate<XmlNode>?
final
pretty bool
read / write
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
sortAttributes Comparator<XmlAttribute>?
final

Methods

normalizeAttributes(List<XmlAttribute> attributes) List<XmlAttribute>
normalizeText(List<XmlNode> nodes) List<XmlNode>
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
A string representation of this object. [...]
inherited
visit<T>(XmlHasVisitor visitable) → T
Helper to visit an XmlHasVisitor using this visitor by dispatching through the provided visitable.
inherited
visitAttribute(XmlAttribute node) → void
Visit an XmlAttribute node.
inherited
visitCDATA(XmlCDATA node) → void
Visit an XmlCDATA node.
inherited
visitComment(XmlComment node) → void
Visit an XmlComment node.
inherited
visitDeclaration(XmlDeclaration node) → void
Visit an XmlDeclaration node.
inherited
visitDoctype(XmlDoctype node) → void
Visit an XmlDoctype node.
inherited
visitDocument(XmlDocument node) → void
Visit an XmlDocument node.
override
visitDocumentFragment(XmlDocumentFragment node) → void
Visit an XmlDocumentFragment node.
inherited
visitElement(XmlElement node) → void
Visit an XmlElement node.
override
visitName(XmlName name) → void
Visit an XmlName.
inherited
visitProcessing(XmlProcessing node) → void
Visit an XmlProcessing node.
inherited
visitText(XmlText node) → void
Visit an XmlText node.
inherited
writeAttributes(XmlHasAttributes node) → void
override
writeIterable(Iterable<XmlHasVisitor> nodes, [String? separator]) → void
inherited

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited