NaryOperatorNode class

N-ary operator node.

Examples: \sum, \int

Inheritance
Available Extensions

Constructors

NaryOperatorNode({required String operator, required EquationRowNode? lowerLimit, required EquationRowNode? upperLimit, required EquationRowNode naryand, bool? limits, bool allowLargeOp = true})

Properties

allowLargeOp bool
Special flag for \smallint.
final
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<EquationRowNode?>
Children of this node.
latefinalinherited
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 setteroverride
limits bool?
Whether the limits are displayed as under/over or as scripts.
final
lowerLimit EquationRowNode?
Lower limit.
final
naryand EquationRowNode
Argument for the N-ary operator.
final
operator String
Unicode symbol for the operator character.
final
rightType AtomType
AtomType observed from the right side.
no setteroverride
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
upperLimit EquationRowNode?
Upper limit.
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
override
computeChildPositions() List<int>
Compute children positions. Abstract.
inherited
computeChildren() List<EquationRowNode?>
Compute children. Abstract.
override
computeWidth() int
Compute width from children. Abstract.
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<EquationRowNode?> newChildren) NaryOperatorNode
Return a copy of this node with new children.
override

Operators

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