The function to call with a new offset.
offset
void onMove(Offset offset) => onPan(Point(offset.dx, offset.dy));