NodeFlowViewer<T> constructor

const NodeFlowViewer<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. Widget nodeContainerBuilder(
    1. BuildContext context,
    2. Node<T> node,
    3. Widget content
    )?,
  6. bool enablePanning = true,
  7. bool enableZooming = true,
  8. bool scrollToZoom = true,
  9. bool showAnnotations = false,
  10. bool allowSelection = false,
  11. ValueChanged<Node<T>?>? onNodeTap,
  12. ValueChanged<Node<T>?>? onNodeSelected,
  13. ValueChanged<Connection?>? onConnectionTap,
  14. 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,
});