Drag.fromPoint constructor

Drag.fromPoint(
  1. LatLng originPoint,
  2. LatLng destination
)

Creates a Drag instance for dragging a point.

Implementation

factory Drag.fromPoint(LatLng originPoint, LatLng destination) {
  return Drag._(
    type: DragType.fromPoint,
    originPoint: originPoint,
    destination: destination,
    originLine: null,
  );
}