checkCalendarPermission method

  1. @override
Future<CalendarPermission> checkCalendarPermission()
override

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;
}