calendarService function
- dynamic ref
A provider for the CalendarService class.
This provider is used to provide the CalendarService class to the rest of the application. It is used to interact with the device's calendar.
Usage:
ref.read(calendarServiceProvider).addBirthday(birthday, title, description, calendarId);
Implementation
@riverpod
CalendarService calendarService(CalendarServiceRef ref) {
final deviceCalendarPlugin = ref.watch(calendarPluginProvider);
return CalendarService(deviceCalendarPlugin);
}