onAutoPan property

void Function(Offset delta)? onAutoPan
final

Callback invoked when autopan triggers during a drag.

Receives the pan delta in graph units. The parent should:

  1. Pan the viewport by this delta (converted to screen units with zoom)
  2. Move the dragged element by this delta to maintain cursor position

Required when autoPan is provided.

Implementation

final void Function(Offset delta)? onAutoPan;