Eventide class

Inheritance
  • Object
  • PlatformInterface
  • Eventide

Constructors

Eventide({@visibleForTesting CalendarApi? calendarApi})

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

createAttendee({required String eventId, required String name, required String email, required ETAttendeeType type}) Future<ETEvent>
Creates a new attendee with the given name, email, and type for the event with the given eventId.
createCalendar({required String title, required Color color, ETAccount? account}) Future<ETCalendar>
Creates a new calendar with the given title, color and optional accountName.
createEvent({required String calendarId, required String title, required DateTime startDate, required DateTime endDate, bool isAllDay = false, String? description, String? url, String? location, Iterable<Duration>? reminders}) Future<ETEvent>
Creates a new event with the given title, startDate, endDate, and calendarId. Optionally, you can provide a description, url, location, and a list of reminders duration.
createEventInDefaultCalendar({required String title, required DateTime startDate, required DateTime endDate, bool isAllDay = false, String? description, String? url, String? location, Iterable<Duration>? reminders}) Future<void>
Creates a new event in the default calendar with the given title, startDate, endDate. Optionally, you can provide a description, url, location, and a list of reminders duration.
createEventThroughNativePlatform({String? title, DateTime? startDate, DateTime? endDate, bool? isAllDay, String? description, String? url, String? location, Iterable<Duration>? reminders}) Future<void>
Creates a new event through the native platform's event creation UI with optional title, startDate, endDate, description, url, location, and a list of reminders duration.
createReminder({required String eventId, required Duration durationBeforeEvent}) Future<ETEvent>
Creates a new reminder with the given durationBeforeEvent for the event with the given eventId.
deleteAttendee({required String eventId, required ETAttendee attendee}) Future<ETEvent>
Deletes the attendee with the given attendee for the event with the given eventId.
deleteCalendar({required String calendarId}) Future<void>
Deletes the calendar with the given calendarId.
deleteEvent({required String eventId}) Future<void>
Deletes the event with the given eventId from the calendar with the given calendarId.
deleteReminder({required String eventId, required Duration durationBeforeEvent}) Future<ETEvent>
Deletes the reminder with the given durationBeforeEvent for the event with the given eventId.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
retrieveAccounts() Future<Iterable<ETAccount>>
Retrieves all available accounts from the device.
retrieveCalendars({bool onlyWritableCalendars = true, ETAccount? account}) Future<Iterable<ETCalendar>>
Retrieves a list of calendars. If onlyWritableCalendars is true, only writable calendars are returned.
retrieveEvents({required String calendarId, DateTime? startDate, DateTime? endDate}) Future<Iterable<ETEvent>>
Retrieves a list of events from the calendar with the given calendarId. Optionally, you can provide a startDate and endDate to filter the events.
toString() String
A string representation of this object.
inherited

Operators

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