BlockNode class

A block represents a group of adjacent LineNodes with the same block style.

Block examples: lists, quotes, code snippets.

Inheritance
Implemented types
Mixed in types

Constructors

BlockNode()

Properties

childCount int
Returns total number of child nodes in this container. [...]
read-only, inherited
children LinkedList<Node>
List of children.
read-only, inherited
defaultChild LineNode
Returns an instance of default child for this container node. [...]
read-only, override
documentOffset int
Offset in characters of this node in the document.
read-only, inherited
first Node
Returns the first child Node.
read-only, inherited
hashCode int
The hash code for this object. [...]
read-only, inherited
isEmpty bool
Returns true if this container has no child nodes.
read-only, inherited
isFirst bool
Returns true if this node is the first node in the parent list.
read-only, inherited
isLast bool
Returns true if this node is the last node in the parent list.
read-only, inherited
isNotEmpty bool
Returns true if this container has at least 1 child.
read-only, inherited
last Node
Returns the last child Node.
read-only, inherited
length int
Content length of this node's children. To get number of children in this node use childCount.
read-only, inherited
list LinkedList<Node>
Get the linked list containing this element. [...]
read-only, inherited
mounted bool
Returns true if this node is currently mounted, e.g. parent is not null.
read-only, inherited
next Node
Return 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, inherited
parent ContainerNode<Node>
Current parent of this node. May be null if this node is not mounted.
read-only, inherited
previous Node
Return 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 NotusStyle
Style of this node.
read-only, inherited

Methods

add(LineNode node) → void
Adds node to the end of this container children list.
inherited
addFirst(LineNode node) → void
Adds node to the beginning of this container children list.
inherited
applyAttribute(NotusAttribute attribute) → void
Applies style attribute to this node.
inherited
applyStyle(NotusStyle value) → void
Applies new style value to this node. Provided value is merged into current style.
inherited
clearStyle() → void
Clears style of this node.
inherited
clone() BlockNode
Creates new unmounted BlockNode with the same attributes.
containsOffset(int offset) bool
Returns true if this node contains character at specified offset in the document.
inherited
delete(int index, int length) → void
Delete length characters of this node starting from index.
inherited
insert(int index, String value, NotusStyle style) → void
Insert text at specified character index with style style.
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(LineNode node) → void
Removes node from this container.
inherited
retain(int index, int length, NotusStyle attributes) → void
Format length characters of this node starting from index with specified style style.
inherited
toDelta() Delta
Returns Delta representation of this node.
override
toPlainText() String
Returns plain-text representation of this node.
inherited
toString() String
Returns a string representation of this object.
override
Unlink the element from its linked list. [...]
inherited
unwrapLine(LineNode line) → void
Unwraps line from this block.

Operators

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