copyWith method

Drag copyWith({
  1. DragType? type,
  2. LatLng? originPoint,
  3. List<LatLng>? originLine,
  4. LatLng? destination,
})

Creates a copy of this Drag instance with optional modifications.

Implementation

Drag copyWith({
  DragType? type,
  LatLng? originPoint,
  List<LatLng>? originLine,
  LatLng? destination,
}) {
  return Drag._(
    type: type ?? this.type,
    originPoint: originPoint ?? this.originPoint,
    originLine: originLine ?? this.originLine,
    destination: destination ?? this.destination,
  );
}