CalendarBridgeMethodChannel class final

Method channel implementation of the CalendarRepository This class handles communication with the native platform code

Implemented types
Annotations

Constructors

CalendarBridgeMethodChannel({MethodChannel? methodChannel})
Constructor with optional custom MethodChanne
const

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

createCalendar(CreateCalendarParams params) Future<Calendar>
Create a new calendar
override
createEvent(CalendarEvent event) Future<String>
Create a new event in the specified calendar
override
deleteCalendar(String calendarId) Future<bool>
Delete a calendar
override
deleteEvent(String calendarId, String eventId) Future<bool>
Delete an event from a calendar
override
deleteEventInstance(String calendarId, String eventId, DateTime startDate, {bool followingInstances = false}) Future<bool>
Delete a specific instance of a recurring event
override
getCalendarColors() Future<Map<String, int>?>
Retrieve available calendar colors Returns a map of color keys to color values Throws PermissionDeniedException if permissions are not granted
override
getCalendars() Future<List<Calendar>>
Retrieve all calendars available on the device Throws PermissionDeniedException if permissions are not granted
override
getEventColors(String calendarId) Future<Map<String, int>?>
Retrieve available event colors for a specific calendar Returns a map of color keys to color values Throws PermissionDeniedException if permissions are not granted Throws CalendarNotFoundException if the calendar doesn't exist
override
getEvents(String calendarId, {RetrieveEventsParams? params}) Future<List<CalendarEvent>>
Retrieve events from a specific calendar
override
hasPermissions() Future<PermissionStatus>
Check the current status of calendar permissions Returns the permission status enum
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermissions() Future<bool>
Request calendar permissions from the user Returns true if permissions are granted
override
toString() String
A string representation of this object.
inherited
updateCalendarColor(String calendarId, String colorKey) Future<bool>
Update calendar color
override
updateEvent(CalendarEvent event) Future<String>
Update an existing event
override

Operators

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