typedef Translation = Offset Function( /// Snapshot rectangle in local coordinates. Rect rect, /// Drag position within the rectangle. Offset dragPosition, );