RootNode class
Root node of document tree.
- Inheritance
-
- Object
- LinkedListEntry<
Node> - Node
- ContainerNode<
ContainerNode< Node> > - RootNode
Constructors
- RootNode()
Properties
- childCount → int
-
Returns total number of child nodes in this container.
read-onlyinherited
-
children
→ LinkedList<
Node> -
List of children.
read-onlyinherited
-
defaultChild
→ ContainerNode<
Node> -
Returns an instance of default child for this container node.
read-onlyoverride
- documentOffset → int
-
Offset in characters of this node in the document.
read-onlyinherited
- first → Node
-
Returns the first child Node.
read-onlyinherited
- hashCode → int
-
The hash code for this object.
read-onlyinherited
- isEmpty → bool
-
Returns
true
if this container has no child nodes.read-onlyinherited - isFirst → bool
-
Returns
true
if this node is the first node in the parent list.read-onlyinherited - isLast → bool
-
Returns
true
if this node is the last node in the parent list.read-onlyinherited - isNotEmpty → bool
-
Returns
true
if this container has at least 1 child.read-onlyinherited - last → Node
-
Returns the last child Node.
read-onlyinherited
- length → int
-
Content length of this node's children. To get number of children in this
node use childCount.
read-onlyinherited
-
list
→ LinkedList<
Node> -
The linked list containing this element.
read-onlyinherited
- mounted → bool
-
Returns
true
if this node is currently mounted, e.g. parent is notnull
.read-onlyinherited - next → Node
-
The successor of this element in its linked list.
read-onlyinherited
- offset → int
-
Offset in characters of this node relative to parent node.
read-onlyinherited
-
parent
→ ContainerNode<
Node> -
Current parent of this node. May be null if this node is not mounted.
read-onlyinherited
- previous → Node
-
The predecessor of this element in its linked list.
read-onlyinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-onlyinherited
Methods
-
add(
ContainerNode< Node> node) → void -
Adds
node
to the end of this container children list.inherited -
addFirst(
ContainerNode< Node> node) → void -
Adds
node
to the beginning of this container children list.inherited -
containsOffset(
int offset) → bool -
Returns
true
if this node contains character at specifiedoffset
in the document.inherited -
delete(
int index, int length) → void -
Delete
length
characters of this node starting fromindex
.inherited -
insert(
int index, String value, NotusStyle style) → void -
Insert
text
at specified characterindex
with stylestyle
.inherited -
insertAfter(
Node entry) → void -
Insert an element after this element in this element's linked list.
inherited
-
insertBefore(
Node entry) → void -
Insert an element before this element in this element's linked list.
inherited
-
lookup(
int offset, {bool inclusive = false}) → LookupResult -
Looks up a child Node at specified character
offset
in this container.inherited -
moveChildren(
ContainerNode< Node> newParent) → void -
Moves children of this node to
newParent
.inherited -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed.
inherited
-
optimize(
) → void -
Optimize this node within parent.
override
-
remove(
ContainerNode< Node> node) → void -
Removes
node
from this container.inherited -
retain(
int index, int length, NotusStyle attributes) → void -
Format
length
characters of this node starting fromindex
with specified stylestyle
.inherited -
toDelta(
) → Delta -
Returns Delta representation of this node.
override
-
toPlainText(
) → String -
Returns plain-text representation of this node.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unlink(
) → void -
Unlink the element from its linked list.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited