copyWith method

UArValue copyWith({
  1. UArSessionState? state,
  2. UArTrackingState? tracking,
  3. UArTrackingReason? trackingReason,
  4. UArCapabilities? capabilities,
  5. UArConfig? config,
  6. Map<String, UArPlane>? planes,
  7. Map<String, UArAnchor>? anchors,
  8. Map<String, UArNode>? nodes,
  9. Map<String, UArTrackedImage>? images,
  10. Map<String, UArFace>? faces,
  11. UArBody? body,
  12. bool clearBody = false,
  13. UArFrame? frame,
  14. int? textureId,
  15. String? viewType,
  16. bool? isRecording,
  17. bool? isXrActive,
  18. UArException? error,
  19. bool clearError = false,
})

Implementation

UArValue copyWith({
  UArSessionState? state,
  UArTrackingState? tracking,
  UArTrackingReason? trackingReason,
  UArCapabilities? capabilities,
  UArConfig? config,
  Map<String, UArPlane>? planes,
  Map<String, UArAnchor>? anchors,
  Map<String, UArNode>? nodes,
  Map<String, UArTrackedImage>? images,
  Map<String, UArFace>? faces,
  UArBody? body,
  bool clearBody = false,
  UArFrame? frame,
  int? textureId,
  String? viewType,
  bool? isRecording,
  bool? isXrActive,
  UArException? error,
  bool clearError = false,
}) => UArValue(
  state: state ?? this.state,
  tracking: tracking ?? this.tracking,
  trackingReason: trackingReason ?? this.trackingReason,
  capabilities: capabilities ?? this.capabilities,
  config: config ?? this.config,
  planes: planes ?? this.planes,
  anchors: anchors ?? this.anchors,
  nodes: nodes ?? this.nodes,
  images: images ?? this.images,
  faces: faces ?? this.faces,
  body: clearBody ? null : body ?? this.body,
  frame: frame ?? this.frame,
  textureId: textureId ?? this.textureId,
  viewType: viewType ?? this.viewType,
  isRecording: isRecording ?? this.isRecording,
  isXrActive: isXrActive ?? this.isXrActive,
  error: clearError ? null : error ?? this.error,
);