Node class

Implemented types
Available extensions

Constructors

Node.new(String name, [Map<String, dynamic> attributes = const {}, List<NodeInterface> children = const [], String value = ''])

Properties

hashCode int
The hash code for this object.
no setterinherited
length int
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

addAttributes(Map<String, dynamic> attributes) → void
override
addChild(NodeInterface node) NodeInterface
override
attributes() Attributes
override
children() Nodes
override
clear() → void
override
exists(String offset) bool
init(String name, [Map<String, dynamic> attributes = const {}, List<NodeInterface> children = const [], String value = '']) → void
name() String
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
searchAttribute([List<String> searchPath = const []]) String
override
searchNode([List<String> searchPath = const []]) NodeInterface?
override
searchNodes([List<String> searchPath = const []]) Nodes
override
setValue(String value) → void
override
toString() String
A string representation of this object.
inherited
toXmlBuilder([XmlBuilder? builder]) → XmlBuilder

Available on NodeInterface, provided by the NodeToXml extension

toXmlString({bool withXmlHeader = false, bool pretty = true}) String

Available on NodeInterface, provided by the NodeToXml extension

unset(String offset) → void
value() String
override

Operators

operator ==(Object other) bool
The equality operator.
inherited
operator [](Object? name) String
override
operator []=(String name, String? value) → void
override