NumberValueComposer constructor
NumberValueComposer({
- Key? key,
- DartBlockValueTreeAlgebraicNode? value,
- required List<
DartBlockVariableDefinition> variableDefinitions, - required List<
DartBlockFunction> customFunctions, - required dynamic onChange(),
- bool showFunctionVariableButton = true,
- bool showUndoRedoButton = true,
- bool showBackspaceButton = true,
- bool showValue = true,
Implementation
NumberValueComposer({
super.key,
this.value,
required List<DartBlockVariableDefinition> variableDefinitions,
required this.customFunctions,
required this.onChange,
this.showFunctionVariableButton = true,
this.showUndoRedoButton = true,
this.showBackspaceButton = true,
this.showValue = true,
}) : variableDefinitions = variableDefinitions
.where(
(element) =>
element.dataType == DartBlockDataType.integerType ||
element.dataType == DartBlockDataType.doubleType,
)
.toList();