copyWith method

UArConfig copyWith({
  1. UArMode? mode,
  2. UArCameraFacing? camera,
  3. UArPlaneDetection? planeDetection,
  4. UArPlaneStyle? planeStyle,
  5. Color? planeColor,
  6. bool? showFeaturePoints,
  7. bool? showWorldOrigin,
  8. bool? showAnchors,
  9. bool? showSceneMesh,
  10. bool? occlusion,
  11. bool? peopleOcclusion,
  12. UArSceneReconstruction? sceneReconstruction,
  13. UArLightEstimation? lightEstimation,
  14. UArFocusMode? focusMode,
  15. bool? instantPlacement,
  16. bool? reticle,
  17. Color? reticleColor,
  18. bool? coaching,
  19. UArCoachingGoal? coachingGoal,
  20. List<UArReferenceImage>? images,
  21. int? maxTrackedImages,
  22. List<UArReferenceObject>? objects,
  23. UArGeoMode? geoMode,
  24. bool? cloudAnchors,
  25. bool? semantics,
  26. bool? showFaceMesh,
  27. Color? faceMeshColor,
  28. bool? collaboration,
  29. Uint8List? worldMap,
  30. UArWorldAlignment? worldAlignment,
  31. bool? shadows,
  32. double? shadowOpacity,
  33. double? exposure,
  34. double? environmentIntensity,
  35. Color? background,
  36. bool? transparentBackground,
  37. UArOrbit? orbit,
  38. int? eventRate,
  39. bool? highFps,
})

Implementation

UArConfig copyWith({
  UArMode? mode,
  UArCameraFacing? camera,
  UArPlaneDetection? planeDetection,
  UArPlaneStyle? planeStyle,
  Color? planeColor,
  bool? showFeaturePoints,
  bool? showWorldOrigin,
  bool? showAnchors,
  bool? showSceneMesh,
  bool? occlusion,
  bool? peopleOcclusion,
  UArSceneReconstruction? sceneReconstruction,
  UArLightEstimation? lightEstimation,
  UArFocusMode? focusMode,
  bool? instantPlacement,
  bool? reticle,
  Color? reticleColor,
  bool? coaching,
  UArCoachingGoal? coachingGoal,
  List<UArReferenceImage>? images,
  int? maxTrackedImages,
  List<UArReferenceObject>? objects,
  UArGeoMode? geoMode,
  bool? cloudAnchors,
  bool? semantics,
  bool? showFaceMesh,
  Color? faceMeshColor,
  bool? collaboration,
  Uint8List? worldMap,
  UArWorldAlignment? worldAlignment,
  bool? shadows,
  double? shadowOpacity,
  double? exposure,
  double? environmentIntensity,
  Color? background,
  bool? transparentBackground,
  UArOrbit? orbit,
  int? eventRate,
  bool? highFps,
}) => UArConfig(
  mode: mode ?? this.mode,
  camera: camera ?? this.camera,
  planeDetection: planeDetection ?? this.planeDetection,
  planeStyle: planeStyle ?? this.planeStyle,
  planeColor: planeColor ?? this.planeColor,
  showFeaturePoints: showFeaturePoints ?? this.showFeaturePoints,
  showWorldOrigin: showWorldOrigin ?? this.showWorldOrigin,
  showAnchors: showAnchors ?? this.showAnchors,
  showSceneMesh: showSceneMesh ?? this.showSceneMesh,
  occlusion: occlusion ?? this.occlusion,
  peopleOcclusion: peopleOcclusion ?? this.peopleOcclusion,
  sceneReconstruction: sceneReconstruction ?? this.sceneReconstruction,
  lightEstimation: lightEstimation ?? this.lightEstimation,
  focusMode: focusMode ?? this.focusMode,
  instantPlacement: instantPlacement ?? this.instantPlacement,
  reticle: reticle ?? this.reticle,
  reticleColor: reticleColor ?? this.reticleColor,
  coaching: coaching ?? this.coaching,
  coachingGoal: coachingGoal ?? this.coachingGoal,
  images: images ?? this.images,
  maxTrackedImages: maxTrackedImages ?? this.maxTrackedImages,
  objects: objects ?? this.objects,
  geoMode: geoMode ?? this.geoMode,
  cloudAnchors: cloudAnchors ?? this.cloudAnchors,
  semantics: semantics ?? this.semantics,
  showFaceMesh: showFaceMesh ?? this.showFaceMesh,
  faceMeshColor: faceMeshColor ?? this.faceMeshColor,
  collaboration: collaboration ?? this.collaboration,
  worldMap: worldMap ?? this.worldMap,
  worldAlignment: worldAlignment ?? this.worldAlignment,
  shadows: shadows ?? this.shadows,
  shadowOpacity: shadowOpacity ?? this.shadowOpacity,
  exposure: exposure ?? this.exposure,
  environmentIntensity: environmentIntensity ?? this.environmentIntensity,
  background: background ?? this.background,
  transparentBackground: transparentBackground ?? this.transparentBackground,
  orbit: orbit ?? this.orbit,
  eventRate: eventRate ?? this.eventRate,
  highFps: highFps ?? this.highFps,
);