copyWith method

SpeedLimitModel copyWith({
  1. double? currentSpeed()?,
  2. Location? location()?,
  3. double? speedLimit()?,
  4. CameraProgressInfo? cameraProgressInfo()?,
  5. 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,
  );
}