copyWith method
RouteInstruction
copyWith({
- String? roadName,
- RouteDistance? range,
- ExtraInstructionInfo? extraInstructionInfo,
Implementation
RouteInstruction copyWith({
String? roadName,
RouteDistance? range,
ExtraInstructionInfo? extraInstructionInfo
}) {
return RouteInstruction(
roadName: roadName ?? this.roadName,
range: range ?? this.range,
extraInstructionInfo: extraInstructionInfo ?? this.extraInstructionInfo
);
}