Node class Null safety

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.
read-only
hashCode int
The hash code for this object. [...]
read-only, inherited
isFirst bool
Returns true if this node is the first node in the parent list.
read-only
isLast bool
Returns true if this node is the last node in the parent list.
read-only
length int
Length of this node in characters.
read-only
list LinkedList<Node>?
The linked list containing this element. [...]
read-only, inherited
next Node?
The successor of this element in its linked list. [...]
read-only, inherited
offset int
Offset in characters of this node relative to parent node. [...]
read-only
parent Container<Node?>?
Current parent of this node. May be null if this node is not mounted.
read / write
previous Node?
The predecessor of this element in its linked list. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited
style Style
read-only

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 non-existent 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