copyWith method
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,
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,
);