NodeFlowViewer<T> constructor
const
NodeFlowViewer<T> ({
- Key? key,
- required NodeFlowController<
T> controller, - required Widget nodeBuilder(
- BuildContext context,
- Node<
T> node
- required NodeFlowTheme theme,
- Widget nodeContainerBuilder(
- BuildContext context,
- Node<
T> node, - Widget content
- bool enablePanning = true,
- bool enableZooming = true,
- bool scrollToZoom = true,
- bool showAnnotations = false,
- bool allowSelection = false,
- ValueChanged<
Node< ? onNodeTap,T> ?> - ValueChanged<
Node< ? onNodeSelected,T> ?> - ValueChanged<
Connection?> ? onConnectionTap, - ValueChanged<
Connection?> ? onConnectionSelected,
Implementation
const NodeFlowViewer({
super.key,
required this.controller,
required this.nodeBuilder,
required this.theme,
this.nodeContainerBuilder,
this.enablePanning = true,
this.enableZooming = true,
this.scrollToZoom = true,
this.showAnnotations = false,
this.allowSelection = false,
this.onNodeTap,
this.onNodeSelected,
this.onConnectionTap,
this.onConnectionSelected,
});