MathNode class sealed
A node of the math syntax tree.
Nodes are immutable and carry the span of source they came from. The tree is syntactic: it records what was written (a fraction, a font change, a delimiter) and leaves every size and position to layout.
- Implementers
- AccentNode
- ArrayNode
- BraceNode
- BreakNode
- CdArrowNode
- CellColorNode
- ClassNode
- ColorNode
- DelimSizeNode
- DiagramNode
- EncloseNode
- ErrorNode
- ExtArrowNode
- FontNode
- FracNode
- GraphicsNode
- HtmlNode
- IncompleteNode
- LapNode
- LeftRightNode
- LineBreakNode
- LineNode
- LinkNode
- MathChoiceNode
- MiddleNode
- MultiColumnNode
- MultiRowNode
- OpNode
- OverUnderNode
- PhantomNode
- ProofTreeNode
- RaiseNode
- ReflectNode
- RefNode
- RowNode
- RuleNode
- ScriptsNode
- SizeNode
- SmashNode
- SpaceNode
- SqrtNode
- StyleNode
- SymbolNode
- TagNode
- TextGroupNode
- TextNode
- VCenterNode
- VerbNode
Properties
-
children
→ Iterable<
MathNode> -
The non-null children.
no setter
- hashCode → int
-
The hash code for this object.
no setterinherited
- kind → String
-
Short name used by dump.
no setter
-
props
→ Map<
String, Object?> -
Scalar attributes, for dump and tooling.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
slots
→ List<
(String, MathNode?)> -
Named child slots, in source order. Absent children are null.
no setter
- span → SourceSpan
-
Where in the normalized source this node came from.
final
Methods
-
dump(
) → String - A compact, deterministic s-expression of the subtree, for tests and debugging. Spans are omitted.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited