CalendarProvider class abstract

Abstract interface for calendar integrations.

Implement this to add support for Google Calendar, Apple Calendar, Outlook, or any other calendar service.

CalendarService.configure(GoogleCalendarProvider(...));

Constructors

CalendarProvider()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

createEvent(CalendarEvent event) Future<String>
Creates a calendar event. Returns the created event's ID.
deleteEvent(String eventId) Future<void>
Deletes an event by ID.
getCalendarIds() Future<List<String>>
Returns available calendar IDs (e.g. multiple Google accounts).
getEvents({required DateTime from, required DateTime to, String? calendarId}) Future<List<CalendarEvent>>
Fetches events in a time range.
hasPermission() Future<bool>
Returns true if the user has granted calendar access.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermission() Future<bool>
Requests calendar access. Returns true if granted.
toString() String
A string representation of this object.
inherited
updateEvent(CalendarEvent event) Future<void>
Updates an existing event.

Operators

operator ==(Object other) bool
The equality operator.
inherited