copyWith method

SpeedRangeToStyleZoom copyWith({
  1. SpeedRange? range,
  2. RouteDistance? minDistanceToManeuver,
  3. RouteDistance? maxDistanceToManeuver,
  4. StyleZoom? styleZoom,
})

Implementation

SpeedRangeToStyleZoom copyWith({
  SpeedRange? range,
  RouteDistance? minDistanceToManeuver,
  RouteDistance? maxDistanceToManeuver,
  StyleZoom? styleZoom
}) {
  return SpeedRangeToStyleZoom(
    range: range ?? this.range,
    minDistanceToManeuver: minDistanceToManeuver ?? this.minDistanceToManeuver,
    maxDistanceToManeuver: maxDistanceToManeuver ?? this.maxDistanceToManeuver,
    styleZoom: styleZoom ?? this.styleZoom
  );
}