CalendarPlugin class

Constructors

CalendarPlugin()

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

addAttendees({required String eventId, required List<Attendee> newAttendees}) Future<void>
Helps to add Attendees to an Event
addReminder({required String calendarId, required String eventId, int? minutes}) Future<void>
Helps to add reminder in Android add alarms in iOS
createEvent({required String calendarId, required CalendarEvent event}) Future<String?>
Helps to create an event in the selected calendar
deleteAttendee({required String eventId, required Attendee attendee}) Future<void>
Helps to remove an Attendee from an Event
deleteEvent({required String calendarId, required String eventId}) Future<bool?>
Deletes the selected event in the selected calendar
deleteReminder({required String eventId}) Future<int?>
Helps to delete the selected event's reminder
findFirstDateOfTheMonth(DateTime dateTime) DateTime
Find the first date of the month which contains the provided date.
findFirstDateOfTheWeek(DateTime dateTime) DateTime
Find the first date of the week which contains the provided date.
findLastDateOfTheMonth(DateTime dateTime) DateTime
Find the last date of the month which contains the provided date.
findLastDateOfTheWeek(DateTime dateTime) DateTime
Find last date of the week which contains provided date.
getAttendees({required String eventId}) Future<List<Attendee>?>
Returns all the available Attendees on the selected event
getCalendars() Future<List<Calendar>?>
Returns the available calendars from the device
getEvents({required String calendarId}) Future<List<CalendarEvent>?>
Returns all the available events in the selected calendar
getEventsByDateRange({required String calendarId, required DateTime startDate, required DateTime endDate}) Future<List<CalendarEvent>?>
Returns all the available events on the given date Range
getEventsByMonth({required String calendarId, required DateTime findDate}) Future<List<CalendarEvent>?>
Returns all the available events on the given date Range
getEventsByWeek({required String calendarId, required DateTime findDate}) Future<List<CalendarEvent>?>
Returns all the available events on the given date Range
hasPermissions() Future<bool?>
Check your app has permissions to access the calendar events
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
requestPermissions() Future<void>
Request the app to fetch the permissions to access the calendar
toString() String
A string representation of this object.
inherited
updateEvent({required String calendarId, required CalendarEvent event}) Future<String?>
Helps to update the edited event
updateReminder({required String calendarId, required String eventId, int? minutes}) Future<int?>
Helps to update the selected reminder

Operators

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

Static Properties

platformVersion Future<String?>
no setter