MatrixNode class

Matrix node

Inheritance
Available Extensions

Constructors

MatrixNode({double arrayStretch = 1.0, bool hskipBeforeAndAfter = false, bool isSmall = false, List<MatrixColumnAlign> columnAligns = const [], List<MatrixSeparatorStyle> vLines = const [], List<Measurement> rowSpacings = const [], List<MatrixSeparatorStyle> hLines = const [], required List<List<EquationRowNode?>> body})
Factory constructor for MatrixNode that will sanitize inputs.
factory

Properties

arrayStretch double
arrayStretch parameter from the context.
final
body List<List<EquationRowNode?>>
Body of the matrix.
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
cols int
Column number.
final
columnAligns List<MatrixColumnAlign>
Align types for each column.
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
hashCode int
The hash code for this object.
no setterinherited
hLines List<MatrixSeparatorStyle>
Style for horizontal separator lines.
final
hskipBeforeAndAfter bool
Whether to create an extra padding before the first column and after the last column.
final
isSmall bool
Special flags for \smallmatrix
final
leftType AtomType
AtomType observed from the left side.
no setteroverride
rightType AtomType
AtomType observed from the right side.
no setteroverride
rows int
Row number.
final
rowSpacings List<Measurement>
Spacings between rows;
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
vLines List<MatrixSeparatorStyle>
Style for vertical separator lines.
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
copyWith({double? arrayStretch, bool? hskipBeforeAndAfter, bool? isSmall, List<MatrixColumnAlign>? columnAligns, List<MatrixSeparatorStyle>? columnLines, List<Measurement>? rowSpacing, List<MatrixSeparatorStyle>? rowLines, List<List<EquationRowNode?>>? body}) MatrixNode
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) MatrixNode
Return a copy of this node with new children.
override

Operators

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