copyWith method

DriveRouteResult copyWith({
  1. List<DrivePath>? paths,
  2. LatLng? startPos,
  3. LatLng? targetPos,
  4. num? taxiCost,
})

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