XmlEditor class
A utility class for editing XML-like content (XML or Plist) while preserving formatting and comments.
- Implementers
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
-
getInsertionAnchor(
XmlInsertElementEdit insert) → (int, String) -
Determines the insertion anchor point for the given
insertoperation. Returns a tuple of (anchor index, indent string). -
insert(
XmlInsertElementEdit insert) → void -
Inserts a new element based on the provided
insertdefinition. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
remove(
XmlRemoveElementEdit remove) → bool -
Removes an element based on the provided
removedefinition. -
save(
File file) → bool -
Saves the current XML content to the specified
file. Returnstrueif successful,falseotherwise. -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited