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<
Adds an annotation to the graph.T> , provided by the NodeFlowControllerAPI extension -
clearAnnotationSelection(
) → void -
Available on NodeFlowController<
Clears all annotation selections.T> , provided by the NodeFlowControllerAPI extension -
createGroupAnnotation(
{required String title, required Offset position, required Size size, String? id, Color color = const Color(0xFF2196F3)}) → GroupAnnotation -
Available on NodeFlowController<
Creates and adds a group annotation that visually groups multiple nodes.T> , provided by the NodeFlowControllerAPI extension -
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<
Creates and adds a group annotation that surrounds the specified nodes.T> , provided by the NodeFlowControllerAPI extension -
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<
Creates and adds a marker annotation to the graph.T> , provided by the NodeFlowControllerAPI extension -
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<
Creates and adds a sticky note annotation to the graph.T> , provided by the NodeFlowControllerAPI extension -
deleteSelectedAnnotations(
) → void -
Available on NodeFlowController<
Deletes all currently selected annotations.T> , provided by the NodeFlowControllerAPI extension -
endAnnotationDrag(
) → void -
Available on NodeFlowController<
Ends an annotation drag operation.T> , provided by the NodeFlowControllerAPI extension -
endNodeDrag(
) → void -
Available on NodeFlowController<
Ends a node drag operation.T> , provided by the NodeFlowControllerAPI extension -
getAnnotation(
String annotationId) → Annotation? -
Available on NodeFlowController<
Gets an annotation by its ID.T> , provided by the NodeFlowControllerAPI extension -
hideAllAnnotations(
) → void -
Available on NodeFlowController<
Hides all annotations in the graph.T> , provided by the NodeFlowControllerAPI extension -
isAnnotationSelected(
String annotationId) → bool -
Available on NodeFlowController<
Checks if an annotation is currently selected.T> , provided by the NodeFlowControllerAPI extension -
moveAnnotationDrag(
Offset graphDelta) → void -
Available on NodeFlowController<
Moves an annotation during a drag operation.T> , provided by the NodeFlowControllerAPI extension -
moveNodeDrag(
Offset graphDelta) → void -
Available on NodeFlowController<
Moves nodes during a drag operation.T> , provided by the NodeFlowControllerAPI extension -
removeAnnotation(
String annotationId) → void -
Available on NodeFlowController<
Removes an annotation from the graph.T> , provided by the NodeFlowControllerAPI extension -
selectAnnotation(
String annotationId, {bool toggle = false}) → void -
Available on NodeFlowController<
Selects an annotation in the graph.T> , provided by the NodeFlowControllerAPI extension -
showAllAnnotations(
) → void -
Available on NodeFlowController<
Shows all annotations in the graph.T> , provided by the NodeFlowControllerAPI extension -
startAnnotationDrag(
String annotationId) → void -
Available on NodeFlowController<
Starts an annotation drag operation.T> , provided by the NodeFlowControllerAPI extension -
startNodeDrag(
String nodeId, {MouseCursor? cursor}) → void -
Available on NodeFlowController<
Starts a node drag operation.T> , provided by the NodeFlowControllerAPI extension