Translation typedef

Translation = Offset Function(Rect rect, Offset dragPosition)

Implementation

typedef Translation = Offset Function(
  /// Snapshot rectangle in local coordinates.
  Rect rect,

  /// Drag position within the rectangle.
  Offset dragPosition,
);