NodeFlowControllerAPI<T> extension

Annotation and drag operations for NodeFlowController.

This extension provides methods for:

  • Annotation CRUD operations
  • Annotation factory methods
  • Annotation selection and bulk operations
  • Widget-level drag operations for nodes, connections, and annotations
on

Methods

addAnnotation(Annotation annotation) → void

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Adds an annotation to the graph.
clearAnnotationSelection() → void

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Clears all annotation selections.
createGroupAnnotation({required String title, required Offset position, required Size size, String? id, Color color = const Color(0xFF2196F3)}) GroupAnnotation

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Creates and adds a group annotation that visually groups multiple nodes.
createGroupAnnotationAroundNodes({required String title, required Set<String> nodeIds, String? id, EdgeInsets padding = const EdgeInsets.all(20.0), Color color = const Color(0xFF2196F3)}) GroupAnnotation

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Creates and adds a group annotation that surrounds the specified nodes.
createMarker({required Offset position, MarkerType markerType = MarkerType.info, String? id, double size = 24.0, Color color = const Color(0xFFF44336), String? tooltip}) MarkerAnnotation

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Creates and adds a marker annotation to the graph.
createStickyNote({required Offset position, required String text, String? id, double width = 200.0, double height = 100.0, Color color = const Color(0xFFFFF59D)}) StickyAnnotation

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Creates and adds a sticky note annotation to the graph.
deleteSelectedAnnotations() → void

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Deletes all currently selected annotations.
endAnnotationDrag() → void

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Ends an annotation drag operation.
endNodeDrag() → void

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Ends a node drag operation.
getAnnotation(String annotationId) Annotation?

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Gets an annotation by its ID.
hideAllAnnotations() → void

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Hides all annotations in the graph.
isAnnotationSelected(String annotationId) bool

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Checks if an annotation is currently selected.
moveAnnotationDrag(Offset graphDelta) → void

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Moves an annotation during a drag operation.
moveNodeDrag(Offset graphDelta) → void

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Moves nodes during a drag operation.
removeAnnotation(String annotationId) → void

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Removes an annotation from the graph.
selectAnnotation(String annotationId, {bool toggle = false}) → void

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Selects an annotation in the graph.
showAllAnnotations() → void

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Shows all annotations in the graph.
startAnnotationDrag(String annotationId) → void

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Starts an annotation drag operation.
startNodeDrag(String nodeId, {MouseCursor? cursor}) → void

Available on NodeFlowController<T>, provided by the NodeFlowControllerAPI extension

Starts a node drag operation.