EquationRowNode class

A row of unrelated GreenNodes.

EquationRowNode provides cursor-reachability and editability. It represents a collection of nodes that you can freely edit and navigate.

Inheritance
Available extensions

Constructors

EquationRowNode({required List<GreenNode> children, AtomType? overrideType})
EquationRowNode.empty()
factory

Properties

capturedCursor int
Number of cursor positions that can be captured within this node.
no setterinherited
caretPositions List<int>
Children positions when fully expanded underlying TransparentNode, but appended an extra position entry for the end.
latefinal
childPositions List<int>
Position of child nodes.
latefinalinherited
children List<GreenNode>
Children of this node.
final
editingWidth int
Minimum number of "right" keystrokes needed to move the cursor pass through this node (from the rightmost of the previous node, to the leftmost of the next node)
latefinalinherited
flattenedChildList List<GreenNode>
Children list when fully expanded any underlying TransparentNode.
latefinal
hashCode int
The hash code for this object.
no setterinherited
key GlobalKey<State<StatefulWidget>>?
no setter
leftType AtomType
AtomType observed from the left side.
no setteroverride
overrideType AtomType?
If non-null, the leftmost and rightmost AtomType will be overriden.
final
pos int
no setterinherited
range TextRange
getter/setter pairinherited
rightType AtomType
AtomType observed from the right side.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

buildWidget(MathOptions options, List<BuildResult?> childBuildResults) → BuildResult
Compose Flutter widget with child widgets already built
override
clipChildrenBetween(int pos1, int pos2) ParentableNode<GreenNode>
inherited
computeCaretPositions() List<int>
computeChildOptions(MathOptions options) List<MathOptions>
Calculate the options passed to children when given options from parent
override
computeChildPositions() List<int>
Compute children positions. Abstract.
override
computeWidth() int
Compute width from children. Abstract.
override
copyWith({AtomType? overrideType, List<GreenNode>? children}) EquationRowNode
Utility method.
encodeTeX({TexEncodeConf conf = const TexEncodeConf()}) String

Available on GreenNode, provided by the TexEncoderExt extension

Encodes the node into TeX
expandEquationRow() List<GreenNode>

Available on GreenNode, provided by the GreenNodeWrappingExt extension

If this node is EquationRowNode, its children will be returned. If not, itself will be returned in a list.
getRange(int pos) TextRange
TextRange
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
shouldRebuildWidget(MathOptions oldOptions, MathOptions newOptions) bool
Whether the specific MathOptions parameters that this node directly depends upon have changed.
override
texBreak({int relPenalty = 500, int binOpPenalty = 700, bool enforceNoBreak = true}) → BreakResult<EquationRowNode>

Available on EquationRowNode, provided by the EquationRowNodeTexStyleBreakExt extension

Line breaking results using standard TeX-style line breaking.
toJson() Map<String, Object?>
override
toString() String
A string representation of this object.
inherited
unwrapEquationRow() GreenNode

Available on GreenNode, provided by the GreenNodeWrappingExt extension

Return the only child of EquationRowNode
updateChildren(covariant List<GreenNode> newChildren) EquationRowNode
Return a copy of this node with new children.
override
updatePos(int pos) → void
inherited
wrapWithEquationRow() EquationRowNode

Available on GreenNode, provided by the GreenNodeWrappingExt extension

Wrap a node in EquationRowNode

Operators

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