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. NodeFlowEvents<T>? events,
  8. bool enablePanning = true,
  9. bool enableZooming = true,
  10. bool enableSelection = true,
  11. bool enableNodeDragging = true,
  12. bool enableConnectionCreation = true,
  13. bool enableNodeDeletion = true,
  14. bool scrollToZoom = true,
  15. bool showAnnotations = true,
})

Implementation

const NodeFlowEditor({
  super.key,
  required this.controller,
  required this.nodeBuilder,
  required this.theme,
  this.nodeShapeBuilder,
  this.nodeContainerBuilder,
  this.events,
  this.enablePanning = true,
  this.enableZooming = true,
  this.enableSelection = true,
  this.enableNodeDragging = true,
  this.enableConnectionCreation = true,
  this.enableNodeDeletion = true,
  this.scrollToZoom = true,
  this.showAnnotations = true,
});