checkCalendarPermission method
Implementation
@override
Future<CalendarPermission> checkCalendarPermission() async {
try {
final result = await methodChannel.invokeMethod<int>('checkPermission');
return CalendarPermission.fromInt(result ?? 0);
} on Exception catch (e) {
if (kDebugMode) {
print(e.toString());
}
}
return CalendarPermission.noIdea;
}