PhantomNode class

Phantom node.

Example: \phantom \hphantom.

Inheritance
Available Extensions

Constructors

PhantomNode({required EquationRowNode phantomChild, bool zeroHeight = false, bool zeroWidth = false, bool zeroDepth = false})

Properties

capturedCursor int
Number of cursor positions that can be captured within this node.
no setterinherited
childPositions List<int>
Position of child nodes.
no setterinherited
children List<GreenNode>
Children of this node.
no setterinherited
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)
no setterinherited
hashCode int
The hash code for this object.
no setterinherited
leftType AtomType
AtomType observed from the left side.
no setteroverride
mode Mode
Mode that this node acquires during parse.
no setteroverride
phantomChild EquationRowNode
The phantomed child.
final
rightType AtomType
AtomType observed from the right side.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
zeroDepth bool
Whether to eliminate depth.
final
zeroHeight bool
Whether to eliminate height.
final
zeroWidth bool
Whether to eliminate width.
final

Methods

buildWidget(MathOptions options, List<BuildResult?> childBuildResults) → BuildResult
Compose Flutter widget with child widgets already built
override
computeChildOptions(MathOptions options) List<MathOptions>
Calculate the options passed to children when given options from parent
inherited
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
toJson() Map<String, Object?>
override
toString() String
A string representation of this object.
inherited
updateChildren(covariant List<GreenNode> newChildren) LeafNode
Return a copy of this node with new children.
inherited

Operators

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