openCalendarWithEvent method
Opens the native calendar app with pre-filled event details.
Returns true if the calendar was successfully opened, false otherwise.
Implementation
@override
Future<bool> openCalendarWithEvent(CalendarEvent event) async {
try {
final result = await methodChannel.invokeMethod<bool>(
'openCalendarWithEvent',
event.toMap(),
);
return result ?? false;
} on PlatformException catch (e) {
debugPrint('Error opening calendar: ${e.message}');
return false;
}
}