requestCalendarPermissions method

  1. @override
Future<bool> requestCalendarPermissions()
override

Requests calendar permissions from the user.

Returns true if permissions are granted, false otherwise.

Implementation

@override
Future<bool> requestCalendarPermissions() async {
  try {
    final result =
        await methodChannel.invokeMethod<bool>('requestCalendarPermissions');
    return result ?? false;
  } on PlatformException catch (e) {
    debugPrint('Error requesting calendar permissions: ${e.message}');
    return false;
  }
}