StatementWidget constructor

const StatementWidget({
  1. Key? key,
  2. required Statement statement,
  3. required dynamic onChanged(
    1. Statement
    ),
  4. required bool canDelete,
  5. required bool canChange,
  6. required bool canReorder,
  7. bool canDuplicate = true,
  8. required dynamic onDelete(
    1. Statement
    ),
  9. required dynamic onDuplicate(
    1. Statement statementToDuplicate
    ),
  10. required dynamic onAppendNewStatement(
    1. Statement newStatement
    )?,
  11. required dynamic onCopyStatement(
    1. Statement statement,
    2. bool cut
    ),
  12. required dynamic onCopiedStatement(
    1. Statement statement,
    2. bool cut
    ),
  13. required dynamic onPasteStatement(
    1. Statement statementToPaste
    ),
  14. required dynamic onPastedStatement(),
  15. bool includeBottomPadding = true,
  16. bool showLabel = true,
  17. required List<DartBlockFunction> customFunctions,
})

Implementation

const StatementWidget({
  super.key,
  required this.statement,
  required this.onChanged,
  required this.canDelete,
  required this.canChange,
  required this.canReorder,
  this.canDuplicate = true,
  required this.onDelete,
  required this.onDuplicate,
  required this.onAppendNewStatement,
  required this.onCopyStatement,
  required this.onCopiedStatement,
  required this.onPasteStatement,
  required this.onPastedStatement,
  this.includeBottomPadding = true,
  this.showLabel = true,
  required this.customFunctions,
});