Base Class for any and all nodes in the SDK. If you are writing a link, please look at the SimpleNode class.
Static Methods
-
getDisplayName(
String nameOrPath) → String
Constructors
- Node()
Properties
- attributes → Map<String, Object>
-
Node Attributes
read / write - children → Map<String, Node>
-
Node Children Map of Child Name to Child Node
read / write - configs → Map<String, Object>
-
Node Configs
read / write - profile → Node
-
This node's profile.
read / write - hashCode → int
-
The hash code for this object.
read-only, inherited - runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Operators
-
operator ==(
other) → bool -
The equality operator.
inherited
Methods
-
addChild(
String name, Node node) → void -
Adds a child to this node.
-
forEachAttribute(
void callback(String name, Object value)) → void -
forEachChild(
void callback(String name, Node node)) → void -
Iterates over all the children of this node and passes them to the specified
callback
. -
forEachConfig(
void callback(String name, Object value)) → void -
get(
String name) → Object -
Get a property of this node. If
name
starts with '$', this will fetch a config. Ifname
starts with a '@', this will fetch an attribute. Otherwise this will fetch a child. -
getAttribute(
String name) → Object -
Get an Attribute
-
getChild(
String name) → Node -
Get a Child Node
-
getConfig(
String name) → Object -
Get a Config
-
getOverideAttributes(
String attr) → Object -
same as attributes for local node but different on remote node
-
getSimpleMap(
) → Map<String, dynamic> -
Gets a map for the data that will be listed in the parent node's children property.
-
removeChild(
input) → String -
Remove a child from this node.
input
can be either an instance of Node or aString
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited -
toString(
) → String -
Returns a string representation of this object.
inherited