XmlElement class
A parsed XML element: a name, its attributes, and its element children.
Text content, comments, processing instructions and doctypes are dropped — the SVG subset this package renders is entirely attribute-driven.
- Annotations
Constructors
-
XmlElement({required String name, required Map<
String, String> attributes, required List<XmlElement> children}) -
Creates an element node.
const
Properties
-
attributes
→ Map<
String, String> -
The element's attributes, keyed by their raw (prefixed) name.
final
-
children
→ List<
XmlElement> -
The element children, in document order.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- name → String
-
The local element name, with any namespace prefix stripped
(
svg:path→path).final - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
attribute(
String name) → String? -
Returns the value of
name, or null when absent or empty. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited