copyWith method

RouteInstruction copyWith({
  1. String? roadName,
  2. RouteDistance? range,
  3. 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
  );
}