StyledNodeMixin class

Mixin used by nodes that wish to implement StyledNode interface.

Implemented types
Implementers

Constructors

StyledNodeMixin()

Properties

documentOffset int
Offset in characters of this node in the document.
read-onlyinherited
hashCode int
The hash code for this object.
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
length int
Length of this node in characters.
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 not null.
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
style NotusStyle
Style of this node.
read-onlyoverride

Methods

applyAttribute(NotusAttribute attribute) → void
Applies style attribute to this node.
applyStyle(NotusStyle value) → void
Applies new style value to this node. Provided value is merged into current style.
clearStyle() → void
Clears style of this node.
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 text, 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
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed.
inherited
optimize() → void
Optimize this node within parent.
inherited
retain(int index, int length, NotusStyle style) → void
Format length characters of this node starting from index with specified style style.
inherited
toDelta() Delta
Returns Delta representation of this node.
inherited
toPlainText() String
Returns plain-text representation of this node.
inherited
toString() String
A string representation of this object.
inherited
Unlink the element from its linked list.
inherited

Operators

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