CalendarEvent.fromEvent constructor

CalendarEvent.fromEvent(
  1. Event event
)

Implementation

factory CalendarEvent.fromEvent(cal.Event event) {
  return CalendarEvent(
      event.eventId,
      event.calendarId,
      event.title,
      event.description,
      event.start!.toUtc(),
      event.end!.toUtc(),
      event.allDay,
      event.location,
      event.attendees!.map((attendees) => attendees!.name).toList());
}