copyWith method
SpeedLimitModel
copyWith({
- double? currentSpeed()?,
- Location? location()?,
- double? speedLimit()?,
- CameraProgressInfo? cameraProgressInfo()?,
- bool exceeding()?,
Implementation
SpeedLimitModel copyWith({
double? Function()? currentSpeed,
sdk.Location? Function()? location,
double? Function()? speedLimit,
sdk.CameraProgressInfo? Function()? cameraProgressInfo,
bool Function()? exceeding,
}) {
return SpeedLimitModel(
currentSpeed: currentSpeed != null ? currentSpeed() : this.currentSpeed,
location: location != null ? location() : this.location,
speedLimit: speedLimit != null ? speedLimit() : this.speedLimit,
exceeding: exceeding != null ? exceeding() : this.exceeding,
cameraProgressInfo: cameraProgressInfo != null
? cameraProgressInfo()
: this.cameraProgressInfo,
);
}