DartBlockEditor constructor

const DartBlockEditor({
  1. Key? key,
  2. required DartBlockProgram program,
  3. required bool canChange,
  4. required bool canDelete,
  5. required bool canReorder,
  6. required bool canRun,
  7. Duration? maximumExecutionDuration,
  8. List<DartBlockNativeFunctionCategory>? allowedNativeFunctionCategories,
  9. List<DartBlockNativeFunctionType>? allowedNativeFunctionTypes,
  10. bool isDense = false,
  11. ScrollController? scrollController,
  12. dynamic onChanged(
    1. DartBlockProgram changedDartBlockProgram
    )?,
  13. dynamic onInteraction(
    1. DartBlockInteraction dartBlockInteraction
    )?,
  14. EdgeInsets? padding,
})

Implementation

const DartBlockEditor({
  super.key,
  required this.program,
  required this.canChange,
  required this.canDelete,
  required this.canReorder,
  required this.canRun,
  this.maximumExecutionDuration,
  List<DartBlockNativeFunctionCategory>? allowedNativeFunctionCategories,
  List<DartBlockNativeFunctionType>? allowedNativeFunctionTypes,
  this.isDense = false,
  this.scrollController,
  this.onChanged,
  this.onInteraction,
  this.padding,
}) : allowedNativeFunctionCategories =
         allowedNativeFunctionCategories ??
         DartBlockNativeFunctionCategory.values,
     allowedNativeFunctionTypes =
         allowedNativeFunctionTypes ?? DartBlockNativeFunctionType.values;