CalendarEvent.fromEvent constructor Null safety

CalendarEvent.fromEvent(
  1. Event event
)

Implementation

factory CalendarEvent.fromEvent(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());
}