copyWith method
Implementation
DriveRouteResult copyWith({
List<DrivePath>? paths,
LatLng? startPos,
LatLng? targetPos,
num? taxiCost,
}) {
return DriveRouteResult(
paths: paths ?? this.paths,
startPos: startPos ?? this.startPos,
targetPos: targetPos ?? this.targetPos,
taxiCost: taxiCost ?? this.taxiCost,
);
}