shareWith method
Implementation
Future<EncryptedCalendarItem> shareWith(String sdkId, String delegateId, EncryptedCalendarItem calendarItem, CalendarItemShareOptions? options) async {
final res = await _methodChannel.invokeMethod<String>(
'CalendarItemApi.encrypted.shareWith',
{
"sdkId": sdkId,
"delegateId": jsonEncode(delegateId),
"calendarItem": jsonEncode(EncryptedCalendarItem.encode(calendarItem)),
"options": jsonEncode(options == null ? null : CalendarItemShareOptions.encode(options!)),
}
);
if (res == null) throw AssertionError("received null result from platform method shareWith");
final parsedResJson = jsonDecode(res);
return EncryptedCalendarItem.fromJSON(parsedResJson);
}