shareWith method

Future<DecryptedCalendarItem> shareWith(
  1. String sdkId,
  2. String delegateId,
  3. DecryptedCalendarItem calendarItem,
  4. CalendarItemShareOptions? options,
)

Implementation

Future<DecryptedCalendarItem> shareWith(String sdkId, String delegateId, DecryptedCalendarItem calendarItem, CalendarItemShareOptions? options) async {
	final res = await _methodChannel.invokeMethod<String>(
		'CalendarItemApi.shareWith',
		{
			"sdkId": sdkId,
			"delegateId": jsonEncode(delegateId),
			"calendarItem": jsonEncode(DecryptedCalendarItem.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 DecryptedCalendarItem.fromJSON(parsedResJson);
}