XmlName class Null safety

XML entity name.

Mixed in types

Constructors

XmlName(String local, [String? prefix])
Creates a qualified XmlName from a local name and an optional prefix.
factory
XmlName.fromString(String qualified)
Create a XmlName by parsing the provided qualified name.
factory
XmlName.internal()

Properties

hashCode int
The hash code for this object. [...]
read-only, override
hasParent bool
Test whether the node has a parent or not.
read-only, inherited
local String
Return the local name, excluding the namespace prefix.
read-only
namespaceUri String?
Return the namespace URI, or null.
read-only
parent XmlNode?
Return the parent node of this node, or null if there is none.
read-only, inherited
prefix String?
Return the namespace prefix, or null.
read-only
qualified String
Return the fully qualified name, including the namespace prefix.
read-only
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

accept(XmlVisitor visitor) → dynamic
Dispatch the invocation depending on this type to the visitor.
override
attachParent(covariant XmlNode parent) → void
Internal helper to attach a child to this parent, do not call directly.
inherited
copy() XmlName
detachParent(covariant XmlNode parent) → void
Internal helper to detach a child from its parent, do not call directly.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
replace(XmlNode other) → void
Replace this node with other.
inherited
toString() String
A string representation of this object. [...]
inherited
toXmlString({bool pretty = false, XmlEntityMapping? entityMapping, int? level, String? indent, String? newLine, Predicate<XmlNode>? preserveWhitespace, Predicate<XmlAttribute>? indentAttribute, Comparator<XmlAttribute>? sortAttributes}) String
Return an XML string of this object. [...]
inherited

Operators

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