copyWith method

ARLight copyWith({
  1. String? id,
  2. ARLightType? type,
  3. Vector3? position,
  4. Quaternion? rotation,
  5. Vector3? direction,
  6. double? intensity,
  7. LightIntensityUnit? intensityUnit,
  8. Vector3? color,
  9. double? range,
  10. double? innerConeAngle,
  11. double? outerConeAngle,
  12. bool? isEnabled,
  13. bool? castShadows,
  14. ShadowQuality? shadowQuality,
  15. ShadowFilterMode? shadowFilterMode,
  16. double? shadowBias,
  17. double? shadowNormalBias,
  18. double? shadowNearPlane,
  19. double? shadowFarPlane,
  20. DateTime? createdAt,
  21. DateTime? lastModified,
  22. Map<String, dynamic>? metadata,
})

Create a copy with modified properties

Implementation

ARLight copyWith({
  String? id,
  ARLightType? type,
  Vector3? position,
  Quaternion? rotation,
  Vector3? direction,
  double? intensity,
  LightIntensityUnit? intensityUnit,
  Vector3? color,
  double? range,
  double? innerConeAngle,
  double? outerConeAngle,
  bool? isEnabled,
  bool? castShadows,
  ShadowQuality? shadowQuality,
  ShadowFilterMode? shadowFilterMode,
  double? shadowBias,
  double? shadowNormalBias,
  double? shadowNearPlane,
  double? shadowFarPlane,
  DateTime? createdAt,
  DateTime? lastModified,
  Map<String, dynamic>? metadata,
}) {
  return ARLight(
    id: id ?? this.id,
    type: type ?? this.type,
    position: position ?? this.position,
    rotation: rotation ?? this.rotation,
    direction: direction ?? this.direction,
    intensity: intensity ?? this.intensity,
    intensityUnit: intensityUnit ?? this.intensityUnit,
    color: color ?? this.color,
    range: range ?? this.range,
    innerConeAngle: innerConeAngle ?? this.innerConeAngle,
    outerConeAngle: outerConeAngle ?? this.outerConeAngle,
    isEnabled: isEnabled ?? this.isEnabled,
    castShadows: castShadows ?? this.castShadows,
    shadowQuality: shadowQuality ?? this.shadowQuality,
    shadowFilterMode: shadowFilterMode ?? this.shadowFilterMode,
    shadowBias: shadowBias ?? this.shadowBias,
    shadowNormalBias: shadowNormalBias ?? this.shadowNormalBias,
    shadowNearPlane: shadowNearPlane ?? this.shadowNearPlane,
    shadowFarPlane: shadowFarPlane ?? this.shadowFarPlane,
    createdAt: createdAt ?? this.createdAt,
    lastModified: lastModified ?? this.lastModified,
    metadata: metadata ?? this.metadata,
  );
}