copyWith method

BetterRouteInfo copyWith({
  1. TrafficRoute? trafficRoute,
  2. RoutePoint? startPoint,
})

Implementation

BetterRouteInfo copyWith({
  TrafficRoute? trafficRoute,
  RoutePoint? startPoint
}) {
  return BetterRouteInfo(
    trafficRoute: trafficRoute ?? this.trafficRoute,
    startPoint: startPoint ?? this.startPoint
  );
}