copyWith method
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,
);
}