copyWith method
UArNode
copyWith({
- UArSource? source,
- UArSource? iosSource,
- String? anchorId,
- String? parentId,
- UArVector3? position,
- UArQuaternion? rotation,
- UArVector3? scale,
- double? width,
- double? height,
- double? depth,
- double? radius,
- UArMaterial? material,
- UArBillboard? billboard,
- bool? visible,
- bool? castShadow,
- bool? hittable,
- UArAnimation? animation,
- UArVideoOptions? video,
- double? fitSize,
- UArPivot? pivot,
- Map<
String, Object?> ? data,
Implementation
UArNode copyWith({
UArSource? source,
UArSource? iosSource,
String? anchorId,
String? parentId,
UArVector3? position,
UArQuaternion? rotation,
UArVector3? scale,
double? width,
double? height,
double? depth,
double? radius,
UArMaterial? material,
UArBillboard? billboard,
bool? visible,
bool? castShadow,
bool? hittable,
UArAnimation? animation,
UArVideoOptions? video,
double? fitSize,
UArPivot? pivot,
Map<String, Object?>? data,
}) => UArNode(
id: id,
type: type,
source: source ?? this.source,
iosSource: iosSource ?? this.iosSource,
anchorId: anchorId ?? this.anchorId,
parentId: parentId ?? this.parentId,
position: position ?? this.position,
rotation: rotation ?? this.rotation,
scale: scale ?? this.scale,
width: width ?? this.width,
height: height ?? this.height,
depth: depth ?? this.depth,
radius: radius ?? this.radius,
material: material ?? this.material,
billboard: billboard ?? this.billboard,
visible: visible ?? this.visible,
castShadow: castShadow ?? this.castShadow,
hittable: hittable ?? this.hittable,
animation: animation ?? this.animation,
video: video ?? this.video,
fitSize: fitSize ?? this.fitSize,
pivot: pivot ?? this.pivot,
data: data ?? this.data,
);