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. PortBuilder<T>? portBuilder,
  8. LabelBuilder? labelBuilder,
  9. ConnectionStyleOverrides? connectionStyleResolver(
    1. Connection connection
    )?,
  10. NodeFlowEvents<T>? events,
  11. NodeFlowBehavior behavior = NodeFlowBehavior.design,
  12. bool scrollToZoom = true,
  13. bool showAnnotations = true,
})

Implementation

const NodeFlowEditor({
  super.key,
  required this.controller,
  required this.nodeBuilder,
  required this.theme,
  this.nodeShapeBuilder,
  this.nodeContainerBuilder,
  this.portBuilder,
  this.labelBuilder,
  this.connectionStyleResolver,
  this.events,
  this.behavior = NodeFlowBehavior.design,
  this.scrollToZoom = true,
  this.showAnnotations = true,
});