Device Calendar Adapter
Component Detail
Infrastructure
low complexity
mobile
0
Dependencies
1
Dependents
0
Entities
0
Integrations
Description
Thin adapter wrapping the Flutter device_calendar plugin to provide a typed, testable interface over raw plugin calls. Abstracts platform channel differences between iOS EventKit and Android CalendarProvider so the Calendar Integration Service works against a stable contract regardless of platform.
device-calendar-adapter
Responsibilities
- Wrap device_calendar plugin calls with typed Dart interfaces
- Map plugin-specific error codes to a typed CalendarException hierarchy
- Isolate the plugin dependency to a single boundary file for easy mocking in tests
Interfaces
fetchCalendars(): Future<Result<List<Calendar>>>
fetchEvents(calendarId, range): Future<Result<List<Event>>>
createOrUpdateEvent(calendarId, event): Future<Result<String>>
deleteEvent(calendarId, eventId): Future<Result<void>>