setSnapDelegate method

void setSnapDelegate(
  1. SnapDelegate? delegate
)

Sets the snap delegate for alignment/snap behavior during drag.

The delegate is called during node drag operations to adjust the drag delta for snapping to alignment guides or other targets.

Example:

controller.setSnapDelegate(MySnapDelegate());

Implementation

void setSnapDelegate(SnapDelegate? delegate) {
  _snapDelegate = delegate;
}