NumberValueComposer constructor

NumberValueComposer({
  1. Key? key,
  2. DartBlockValueTreeAlgebraicNode? value,
  3. required List<DartBlockVariableDefinition> variableDefinitions,
  4. required List<DartBlockFunction> customFunctions,
  5. required dynamic onChange(
    1. DartBlockValueTreeAlgebraicNode?
    ),
  6. bool showFunctionVariableButton = true,
  7. bool showUndoRedoButton = true,
  8. bool showBackspaceButton = true,
  9. 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();