TextNode class final

Inheritance
Available extensions
Annotations

Constructors

TextNode.new({required Delta delta, Iterable<Node>? children, Attributes? attributes})
TextNode.empty({Attributes? attributes})

Properties

attributes Attributes
no setterinherited
children List<Node>
no setterinherited
context BuildContext?

Available on Node, provided by the NodeExtensions extension

no setter
delta Delta
getter/setter pairoverride-getter
externalValues NodeExternalValues?
getter/setter pairinherited
extraInfos Map?
this value is used to store temporary data, and will be cleared after the node is rendered
getter/setter pairinherited
hashCode int
The hash code for this object.
no setterinherited
hasListeners bool
Whether any listeners are currently registered.
no setterinherited
id String
The id of the node.
getter/setter pairinherited
key GlobalKey<State<StatefulWidget>>
finalinherited
finalinherited
level int

Available on Node, provided by the NodeExtensions extension

Level of the node in the document tree.
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
parent Node?
The parent of the node.
getter/setter pairinherited
path Path
The path of the node.
no setterinherited
previous Node?
The predecessor of this element in its linked list.
no setterinherited
rect Rect

Available on Node, provided by the NodeExtensions extension

no setter
renderBox RenderBox?

Available on Node, provided by the NodeExtensions extension

no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
selectable SelectableMixin<StatefulWidget>?

Available on Node, provided by the NodeExtensions extension

no setter
subtype String
no setteroverride
type String
The type of the node.
finalinherited

Methods

addListener(VoidCallback listener) → void
Register a closure to be called when the object changes.
inherited
allSatisfyInSelection(Selection selection, bool test(Delta delta)) bool

Available on Node, provided by the NodeExtensions extension

checkDocumentIntegrity() → void
check the integrity of the document (for DEBUG only)
inherited
childAtIndexOrNull(int index) Node?
Grabs the Node from this Nodes children at a given index, if the index exists.
inherited
childAtPath(Path path) Node?
inherited
copyWith({String? type = 'text', Iterable<Node>? children, Attributes? attributes, Delta? delta, String? id}) TextNode
Copy the node
override
deepCopy() Node
Deep copy the node
inherited
dispose() → void
Discards any resources used by the object. After this is called, the object is not in a usable state and should be discarded (calls to addListener will throw after the object is disposed).
inherited
findDownward(bool test(Node element)) Node?

Available on Node, provided by the NodeExtensions extension

findParent(bool test(Node element)) Node?

Available on Node, provided by the NodeExtensions extension

inSelection(Selection selection) bool

Available on Node, provided by the NodeExtensions extension

insert(Node entry, {int? index}) → void
Inserts a Node at a given index
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
isParentOf(Node node) bool

Available on Node, provided by the NodeExtensions extension

lastChildWhere(bool test(Node element)) Node?

Available on Node, provided by the NodeExtensions extension

Returns the last node in the subtree that satisfies the given predicate
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
notify() → void
inherited
notifyListeners() → void
Call all the registered listeners.
inherited
previousNodeWhere(bool test(Node element)) Node?

Available on Node, provided by the NodeExtensions extension

Returns the first previous node in the subtree that satisfies the given predicate
removeListener(VoidCallback listener) → void
Remove a previously registered closure from the list of closures that are notified when the object changes.
inherited
toJson() Map<String, Object>
override
toPlainText() String
toString() String
A string representation of this object.
inherited
Unlink the element from its linked list.
inherited
updateAttributes(Attributes attributes) → void
Update the attributes of the node.
inherited

Operators

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