copyWith method
Implementation
DrivePath copyWith({
int? restriction,
List<Steps>? steps,
String? strategy,
num? tollDistance,
num? totalDuration,
num? totalDistance,
num? tolls,
int? totalTrafficlights,
}) {
return DrivePath(
restriction: restriction ?? this.restriction,
steps: steps ?? this.steps,
strategy: strategy ?? this.strategy,
tollDistance: tollDistance ?? this.tollDistance,
totalDuration: totalDuration ?? this.totalDuration,
totalDistance: totalDistance ?? this.totalDistance,
tolls: tolls ?? this.tolls,
totalTrafficlights: totalTrafficlights ?? this.totalTrafficlights,
);
}