RichNode class

One node of the ProseMirror tree: doc, paragraph, text, heading, bulletList, orderedList, listItem, blockquote, horizontalRule, image — or a type this build does not recognise, carried through by its raw string rather than rejected (see RichDocument's doc).

Constructors

RichNode({required String type, required RichAttrs attrs, required List<RichMark> marks, String? text, List<RichNode> children = const []})
const
RichNode.fromJson(Map<String, dynamic> json, String path)
factory

Properties

attrs RichAttrs
final
children List<RichNode>
Child nodes, e.g. a paragraph's inline content or a bulletList's items. Empty for a leaf (text, horizontalRule, image).
final
hashCode int
The hash code for this object.
no setterinherited
marks List<RichMark>
final
props List<Object?>
The list of properties that will be used to determine whether two instances are equal.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stringify bool?
If set to true, the toString method will be overridden to output this instance's props.
no setterinherited
text String?
Set only on a text node.
final
type String
The raw contract discriminator — kept even for a type this build does not otherwise recognise, so a caller can special-case it if it wants to.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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