onDragMove method
Called during drag with the movement delta.
Override this method to perform actions while the annotation is being
dragged. Use the context to move related nodes or perform other
operations. The delta is in graph coordinates.
Example
@override
void onDragMove(Offset delta, AnnotationDragContext context) {
if (_containedNodeIds != null && _containedNodeIds!.isNotEmpty) {
context.moveNodes(_containedNodeIds!, delta);
}
}
Implementation
void onDragMove(Offset delta, AnnotationDragContext context) {
// Default implementation does nothing
}