CalendarMonthRepository class

A repository for fetching and caching calendar month events.

Constructors

CalendarMonthRepository.new({required AbstractApiInterface apiInterface})
Creates a new instance of CalendarMonthRepository.

Properties

apiInterface AbstractApiInterface
The API interface for fetching calendar events.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

clearCache() → void
Clears the cache.
createEvent(CalendarMonthEvent event) Future<CalendarMonthEvent>
Creates a new calendar event.
deleteEvent(String eventId, DateTime eventDate) Future<void>
Deletes a calendar event.
fetchDayEvents({String? templateId, required DateTime displayDate, required bool parentElementsOnly}) Future<List<CalendarMonthEvent>>
Fetches the calendar events for a specific day.
fetchMonthEvents({String? templateId, required DateTime displayDate, required bool parentElementsOnly}) Future<List<CalendarMonthEvent>>
Fetches the calendar events for a specific month.
fetchWeekEvents({String? templateId, required DateTime displayDate, required bool parentElementsOnly}) Future<List<CalendarMonthEvent>>
Fetches the calendar events for a specific week.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
updateEvent(CalendarMonthEvent event) Future<CalendarMonthEvent>
Updates an existing calendar event.

Operators

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