copyWith method

UArNode copyWith({
  1. UArSource? source,
  2. UArSource? iosSource,
  3. String? anchorId,
  4. String? parentId,
  5. UArVector3? position,
  6. UArQuaternion? rotation,
  7. UArVector3? scale,
  8. double? width,
  9. double? height,
  10. double? depth,
  11. double? radius,
  12. UArMaterial? material,
  13. UArBillboard? billboard,
  14. bool? visible,
  15. bool? castShadow,
  16. bool? hittable,
  17. UArAnimation? animation,
  18. UArVideoOptions? video,
  19. double? fitSize,
  20. UArPivot? pivot,
  21. 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,
);