SlotableNode<T extends EquationRowNode?> class
abstract
SlotableNode is those composite node that has editable EquationRowNode as children and lay them out into certain slots.
SlotableNode is the most commonly-used node. They share cursor logic and editing logic.
Depending on node type, some SlotableNode can have nulls inside their children list. When null is allowed, it usually means that node will have different layout slot logic depending on non-null children number.
- Inheritance
-
- Object
- GreenNode
- ParentableNode<
T> - SlotableNode
- Implementers
- Available extensions
Constructors
Properties
- capturedCursor → int
-
Number of cursor positions that can be captured within this node.
no setterinherited
-
childPositions
→ List<
int> -
Position of child nodes.
latefinalinherited
-
children
→ List<
T> -
Children of this node.
latefinal
- 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
- hashCode → int
-
The hash code for this object.
no setterinherited
- leftType → AtomType
-
AtomType observed from the left side.
no setterinherited
- rightType → AtomType
-
AtomType observed from the right side.
no setterinherited
- 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
inherited
-
computeChildOptions(
MathOptions options) → List< MathOptions> -
Calculate the options passed to children when given
options
from parentinherited -
computeChildPositions(
) → List< int> -
Compute children positions. Abstract.
override
-
computeChildren(
) → List< T> - Compute children. Abstract.
-
computeWidth(
) → int -
Compute width from children. Abstract.
override
-
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.
inherited
-
toJson(
) → Map< String, Object?> -
inherited
-
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< T?> newChildren) → ParentableNode<T> -
Return a copy of this node with new children.
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