copyWith method

RouteCamera copyWith({
  1. RouteCameraPurposeEnumSet? purposes,
  2. RouteDistance? rangeAgainst,
  3. RouteDistance? rangeAlong,
  4. RouteCameraDirection? direction,
  5. Optional<double?>? maxSpeedLimit,
})

Implementation

RouteCamera copyWith({
  RouteCameraPurposeEnumSet? purposes,
  RouteDistance? rangeAgainst,
  RouteDistance? rangeAlong,
  RouteCameraDirection? direction,
  Optional<double?>? maxSpeedLimit
}) {
  return RouteCamera(
    purposes: purposes ?? this.purposes,
    rangeAgainst: rangeAgainst ?? this.rangeAgainst,
    rangeAlong: rangeAlong ?? this.rangeAlong,
    direction: direction ?? this.direction,
    maxSpeedLimit: maxSpeedLimit != null ? maxSpeedLimit.value : this.maxSpeedLimit
  );
}