physicalLocation method
set the physical location details for this calendar event
Implementation
void physicalLocation(
String? name,
String? description,
String? descriptionHtml,
String? coordinates,
String? uri,
) {
final tmp1 = name;
final tmp7 = description;
final tmp13 = descriptionHtml;
final tmp19 = coordinates;
final tmp25 = uri;
var tmp0 = 0;
var tmp2 = 0;
var tmp4 = 0;
var tmp5 = 0;
var tmp6 = 0;
var tmp8 = 0;
var tmp10 = 0;
var tmp11 = 0;
var tmp12 = 0;
var tmp14 = 0;
var tmp16 = 0;
var tmp17 = 0;
var tmp18 = 0;
var tmp20 = 0;
var tmp22 = 0;
var tmp23 = 0;
var tmp24 = 0;
var tmp26 = 0;
var tmp28 = 0;
var tmp29 = 0;
var tmp30 = 0;
tmp0 = _box.borrow();
if (tmp1 == null) {
tmp2 = 0;
} else {
tmp2 = 1;
final tmp3 = tmp1;
final tmp3_0 = utf8.encode(tmp3);
tmp5 = tmp3_0.length;
final ffi.Pointer<ffi.Uint8> tmp4_0 = _api.__allocate(tmp5 * 1, 1);
final Uint8List tmp4_1 = tmp4_0.asTypedList(tmp5);
tmp4_1.setAll(0, tmp3_0);
tmp4 = tmp4_0.address;
tmp6 = tmp5;
}
if (tmp7 == null) {
tmp8 = 0;
} else {
tmp8 = 1;
final tmp9 = tmp7;
final tmp9_0 = utf8.encode(tmp9);
tmp11 = tmp9_0.length;
final ffi.Pointer<ffi.Uint8> tmp10_0 = _api.__allocate(tmp11 * 1, 1);
final Uint8List tmp10_1 = tmp10_0.asTypedList(tmp11);
tmp10_1.setAll(0, tmp9_0);
tmp10 = tmp10_0.address;
tmp12 = tmp11;
}
if (tmp13 == null) {
tmp14 = 0;
} else {
tmp14 = 1;
final tmp15 = tmp13;
final tmp15_0 = utf8.encode(tmp15);
tmp17 = tmp15_0.length;
final ffi.Pointer<ffi.Uint8> tmp16_0 = _api.__allocate(tmp17 * 1, 1);
final Uint8List tmp16_1 = tmp16_0.asTypedList(tmp17);
tmp16_1.setAll(0, tmp15_0);
tmp16 = tmp16_0.address;
tmp18 = tmp17;
}
if (tmp19 == null) {
tmp20 = 0;
} else {
tmp20 = 1;
final tmp21 = tmp19;
final tmp21_0 = utf8.encode(tmp21);
tmp23 = tmp21_0.length;
final ffi.Pointer<ffi.Uint8> tmp22_0 = _api.__allocate(tmp23 * 1, 1);
final Uint8List tmp22_1 = tmp22_0.asTypedList(tmp23);
tmp22_1.setAll(0, tmp21_0);
tmp22 = tmp22_0.address;
tmp24 = tmp23;
}
if (tmp25 == null) {
tmp26 = 0;
} else {
tmp26 = 1;
final tmp27 = tmp25;
final tmp27_0 = utf8.encode(tmp27);
tmp29 = tmp27_0.length;
final ffi.Pointer<ffi.Uint8> tmp28_0 = _api.__allocate(tmp29 * 1, 1);
final Uint8List tmp28_1 = tmp28_0.asTypedList(tmp29);
tmp28_1.setAll(0, tmp27_0);
tmp28 = tmp28_0.address;
tmp30 = tmp29;
}
final tmp31 = _api._calendarEventDraftPhysicalLocation(
tmp0,
tmp2,
tmp4,
tmp5,
tmp6,
tmp8,
tmp10,
tmp11,
tmp12,
tmp14,
tmp16,
tmp17,
tmp18,
tmp20,
tmp22,
tmp23,
tmp24,
tmp26,
tmp28,
tmp29,
tmp30,
);
final tmp33 = tmp31.arg0;
final tmp34 = tmp31.arg1;
final tmp35 = tmp31.arg2;
final tmp36 = tmp31.arg3;
if (tmp33 == 0) {
debugAllocation("handle error", tmp34, tmp35);
final ffi.Pointer<ffi.Uint8> tmp34_0 = ffi.Pointer.fromAddress(tmp34);
final tmp33_0 =
utf8.decode(tmp34_0.asTypedList(tmp35), allowMalformed: true);
if (tmp35 > 0) {
final ffi.Pointer<ffi.Void> tmp34_0;
tmp34_0 = ffi.Pointer.fromAddress(tmp34);
_api.__deallocate(tmp34_0, tmp36, 1);
}
throw tmp33_0;
}
return;
}