Node class abstract

An abstract node in a document tree.

Represents a segment of a Quill document with specified offset and length.

The offset property is relative to parent. See also documentOffset which provides absolute offset of this node within the document.

The current parent node is exposed by the parent property.

Inheritance
Implementers

Constructors

Node()

Properties

documentOffset int
Offset in characters of this node in the document.
no setter
hashCode int
The hash code for this object.
no setterinherited
isFirst bool
Returns true if this node is the first node in the parent list.
no setter
isLast bool
Returns true if this node is the last node in the parent list.
no setter
length int
Length of this node in characters.
no setter
list LinkedList<Node>?
The linked list containing this element.
no setterinherited
next Node?
The successor of this element in its linked list.
no setterinherited
offset int
Offset in characters of this node relative to parent node.
no setter
parent Container<Node?>?
Current parent of this node. May be null if this node is not mounted.
getter/setter pair
previous Node?
The predecessor of this element in its linked list.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
style Style
no setter

Methods

adjust() → void
applyAttribute(Attribute attribute) → void
applyStyle(Style value) → void
clearStyle() → void
clone() Node
containsOffset(int offset) bool
Returns true if this node contains character at specified offset in the document.
delete(int index, int? len) → void
insert(int index, Object data, Style? style) → void
insertAfter(Node entry) → void
Insert an element after this element in this element's linked list.
override
insertBefore(Node entry) → void
Insert an element before this element in this element's linked list.
override
newInstance() Node
abstract methods begin
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retain(int index, int? len, Style? style) → void
toDelta() Delta
toPlainText() String
toString() String
A string representation of this object.
inherited
Unlink the element from its linked list.
override

Operators

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