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