NodeFlowEditor<T> constructor
const
NodeFlowEditor<T> ({
- Key? key,
- required NodeFlowController<
T> controller, - required Widget nodeBuilder(
- BuildContext context,
- Node<
T> node
- required NodeFlowTheme theme,
- NodeShape? nodeShapeBuilder(
- BuildContext context,
- Node<
T> node
- Widget nodeContainerBuilder(
- BuildContext context,
- Node<
T> node, - Widget content
- ValueChanged<
Node< ? onNodeSelected,T> ?> - ValueChanged<
Node< ? onNodeTap,T> > - ValueChanged<
Node< ? onNodeDoubleTap,T> > - ValueChanged<
Node< ? onNodeCreated,T> > - ValueChanged<
Node< ? onNodeDeleted,T> > - ValueChanged<
Connection> ? onConnectionTap, - ValueChanged<
Connection> ? onConnectionDoubleTap, - ValueChanged<
Connection> ? onConnectionCreated, - ValueChanged<
Connection> ? onConnectionDeleted, - ValueChanged<
Connection?> ? onConnectionSelected, - ValueChanged<
Annotation?> ? onAnnotationSelected, - ValueChanged<
Annotation> ? onAnnotationTap, - ValueChanged<
Annotation> ? onAnnotationCreated, - ValueChanged<
Annotation> ? onAnnotationDeleted, - ConnectionValidationResult onBeforeStartConnection(
- ConnectionStartContext<
T> context
- ConnectionStartContext<
- ConnectionValidationResult onBeforeCompleteConnection(
- ConnectionCompleteContext<
T> context
- ConnectionCompleteContext<
- bool enablePanning = true,
- bool enableZooming = true,
- bool enableSelection = true,
- bool enableNodeDragging = true,
- bool enableConnectionCreation = true,
- bool enableNodeDeletion = true,
- bool scrollToZoom = true,
- 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,
});