copyWith method

Steps copyWith({
  1. List<TMC>? TMCs,
  2. String? action,
  3. String? assistantAction,
  4. num? distance,
  5. num? duration,
  6. String? instruction,
  7. String? orientation,
  8. List<LatLng>? polyline,
  9. String? road,
  10. List<RouteSearchCityList>? routeSearchCityList,
  11. num? tollDistance,
  12. String? tollRoad,
  13. num? tolls,
})

Implementation

Steps copyWith({
  List<TMC>? TMCs,
  String? action,
  String? assistantAction,
  num? distance,
  num? duration,
  String? instruction,
  String? orientation,
  List<LatLng>? polyline,
  String? road,
  List<RouteSearchCityList>? routeSearchCityList,
  num? tollDistance,
  String? tollRoad,
  num? tolls,
}) {
  return Steps(
    TMCs: TMCs ?? this.TMCs,
    action: action ?? this.action,
    assistantAction: assistantAction ?? this.assistantAction,
    distance: distance ?? this.distance,
    duration: duration ?? this.duration,
    instruction: instruction ?? this.instruction,
    orientation: orientation ?? this.orientation,
    polyline: polyline ?? this.polyline,
    road: road ?? this.road,
    routeSearchCityList: routeSearchCityList ?? this.routeSearchCityList,
    tollDistance: tollDistance ?? this.tollDistance,
    tollRoad: tollRoad ?? this.tollRoad,
    tolls: tolls ?? this.tolls,
  );
}