hasCalendarPermissions static method
Checks if the app has calendar permissions.
Returns true
if calendar permissions are granted, false
otherwise.
Example:
bool hasPermissions = await NativeCalendar.hasCalendarPermissions();
if (!hasPermissions) {
// Request permissions or show explanation to user
}
Implementation
static Future<bool> hasCalendarPermissions() {
return NativeCalendarPlatform.instance.hasCalendarPermissions();
}