LyricText class

The words of a <lyric>.

Named LyricText and not Text so it does not clash with the Text widget when this package is used from Flutter.

https://www.w3.org/2021/06/musicxml40/musicxml-reference/elements/text/

Constructors

LyricText(String content)
LyricText.parse(XmlElement element)
factory

Properties

attributes → XmlNodeList<XmlAttribute>
finalinherited
childElements → Iterable<XmlElement>
An Iterable over the XmlElement children of this node.
no setterinherited
children → XmlNodeList<XmlNode>
finalinherited
content → String
final
elementAttributes → Iterable<XmlAttribute>
The attribute nodes of this node in document order, excluding namespace declarations.
no setterinherited
firstChild → XmlNode?
The first child of this node, or null if there are no children.
no setterinherited
firstElementChild → XmlElement?
The first child XmlElement, or null if there are none.
no setterinherited
hashCode → int
The hash code for this object.
no setterinherited
hasParent → bool
Whether the node has a parent.
no setterinherited
isSelfClosing ↔ bool
Whether the element should be self-closing when empty.
getter/setter pairinherited
lastChild → XmlNode?
The last child of this node, or null if there are no children.
no setterinherited
lastElementChild → XmlElement?
The last child XmlElement, or null if there are none.
no setterinherited
localName → String
The local name, excluding the namespace prefix.
no setterinherited
name → XmlName
finalinherited
namespacePrefix → String?
The namespace prefix, or null.
no setterinherited
namespaces → Iterable<XmlNamespace>
The in-scope namespaces of this node.
no setterinherited
namespaceUri → String?
The namespace URI, or null.
no setterinherited
nodeType → XmlNodeType
The node type of this node.
no setterinherited
parent → XmlNode?
The parent node of this node, or null if there is none.
no setterinherited
qualifiedName → String
The fully qualified name, including the namespace prefix.
no setterinherited
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
text → String
The concatenated text of this node or its descendants. text, CDATA, and comment nodes return the textual value of the node.
no setterinherited
value → String?
The value of the node, or null.
no setterinherited

Methods

accept(XmlVisitor visitor) → void
Dispatch the invocation depending on this type to the visitor.
inherited
attachParent(covariant XmlNode parent) → void
Internal helper to attach a child to this parent, do not call directly.
inherited
copy() → XmlElement
Returns a copy of this node and all its children.
inherited
detachParent(covariant XmlNode parent) → void
Internal helper to detach a child from its parent, do not call directly.
inherited
getAttribute(String name, {String? namespaceUri, String? namespace}) → String?
Returns the attribute value with the given name, or null.
inherited
getAttributeNode(String name, {String? namespaceUri, String? namespace}) → XmlAttribute?
Returns the attribute node with the given name, or null.
inherited
getElement(String name, {String? namespace, String? namespaceUri}) → XmlElement?
Finds the first child element with the given name, or null.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
removeAttribute(String name, {String? namespaceUri, String? namespace}) → void
Removes the attribute with the given fully qualified name.
inherited
setAttribute(String name, String? value, {String? namespaceUri, String? namespace}) → void
Sets the attribute value with the given fully qualified name to value.
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, Predicate<XmlNode>? spaceBeforeSelfClose}) → String
Returns an XML string of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited