resolveCloudAnchor method
Implementation
Future<UArAnchor> resolveCloudAnchor(String cloudId, {String? id}) async {
final Map<Object?, Object?>? raw = await _invoke<Map<Object?, Object?>>("resolveCloudAnchor", <String, Object?>{"cloudId": cloudId, "id": id ?? newId("c")});
if (raw == null) throw const UArException(code: UArErrorCode.notFound, message: "Anchor not resolved");
final UArAnchor anchor = UArAnchor.fromMap(raw);
value = value.copyWith(anchors: <String, UArAnchor>{...value.anchors, anchor.id: anchor});
return anchor;
}