XmlFormatter class
Formats and transforms XML strings for display and export
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
minify(
String xmlContent) → String - Returns a compact, single-line XML string
-
prettyPrint(
String rawXml, {int indentSize = 4}) → String - Returns a well-indented, human-readable XML string
-
stripComments(
String xmlContent) → String -
tokenize(
String xmlContent) → List< XmlToken> - Tokenizes XML for syntax highlighting. Returns a list of XmlToken objects.