NodeFlowEditor<T> constructor

const NodeFlowEditor<T>({
  1. Key? key,
  2. required NodeFlowController<T> controller,
  3. required Widget nodeBuilder(
    1. BuildContext context,
    2. Node<T> node
    ),
  4. required NodeFlowTheme theme,
  5. NodeShape? nodeShapeBuilder(
    1. BuildContext context,
    2. Node<T> node
    )?,
  6. Widget nodeContainerBuilder(
    1. BuildContext context,
    2. Node<T> node,
    3. Widget content
    )?,
  7. ValueChanged<Node<T>?>? onNodeSelected,
  8. ValueChanged<Node<T>>? onNodeTap,
  9. ValueChanged<Node<T>>? onNodeDoubleTap,
  10. ValueChanged<Node<T>>? onNodeCreated,
  11. ValueChanged<Node<T>>? onNodeDeleted,
  12. ValueChanged<Connection>? onConnectionTap,
  13. ValueChanged<Connection>? onConnectionDoubleTap,
  14. ValueChanged<Connection>? onConnectionCreated,
  15. ValueChanged<Connection>? onConnectionDeleted,
  16. ValueChanged<Connection?>? onConnectionSelected,
  17. ValueChanged<Annotation?>? onAnnotationSelected,
  18. ValueChanged<Annotation>? onAnnotationTap,
  19. ValueChanged<Annotation>? onAnnotationCreated,
  20. ValueChanged<Annotation>? onAnnotationDeleted,
  21. ConnectionValidationResult onBeforeStartConnection(
    1. ConnectionStartContext<T> context
    )?,
  22. ConnectionValidationResult onBeforeCompleteConnection(
    1. ConnectionCompleteContext<T> context
    )?,
  23. bool enablePanning = true,
  24. bool enableZooming = true,
  25. bool enableSelection = true,
  26. bool enableNodeDragging = true,
  27. bool enableConnectionCreation = true,
  28. bool enableNodeDeletion = true,
  29. bool scrollToZoom = true,
  30. bool showAnnotations = true,
})

Implementation

const NodeFlowEditor({
  super.key,
  required this.controller,
  required this.nodeBuilder,
  required this.theme,
  this.nodeShapeBuilder,
  this.nodeContainerBuilder,
  this.onNodeSelected,
  this.onNodeTap,
  this.onNodeDoubleTap,
  this.onNodeCreated,
  this.onNodeDeleted,
  this.onConnectionTap,
  this.onConnectionDoubleTap,
  this.onConnectionCreated,
  this.onConnectionDeleted,
  this.onConnectionSelected,
  this.onAnnotationSelected,
  this.onAnnotationTap,
  this.onAnnotationCreated,
  this.onAnnotationDeleted,
  this.onBeforeStartConnection,
  this.onBeforeCompleteConnection,
  this.enablePanning = true,
  this.enableZooming = true,
  this.enableSelection = true,
  this.enableNodeDragging = true,
  this.enableConnectionCreation = true,
  this.enableNodeDeletion = true,
  this.scrollToZoom = true,
  this.showAnnotations = true,
});