copyWith method

RouteLane copyWith({
  1. RouteLaneManeuver? routeManeuver,
  2. RouteLaneManeuverEnumSet? maneuvers,
  3. double? speedLimit,
  4. bool? prohibited,
  5. bool? onlyPublicTransport,
})

Implementation

RouteLane copyWith({
  RouteLaneManeuver? routeManeuver,
  RouteLaneManeuverEnumSet? maneuvers,
  double? speedLimit,
  bool? prohibited,
  bool? onlyPublicTransport
}) {
  return RouteLane(
    routeManeuver: routeManeuver ?? this.routeManeuver,
    maneuvers: maneuvers ?? this.maneuvers,
    speedLimit: speedLimit ?? this.speedLimit,
    prohibited: prohibited ?? this.prohibited,
    onlyPublicTransport: onlyPublicTransport ?? this.onlyPublicTransport
  );
}