Drag.fromLine constructor

Drag.fromLine(
  1. List<LatLng> originLine,
  2. LatLng destination
)

Creates a Drag instance for dragging a line.

Implementation

factory Drag.fromLine(List<LatLng> originLine, LatLng destination) {
  return Drag._(
    type: DragType.fromLine,
    originLine: originLine,
    destination: destination,
    originPoint: null,
  );
}