copyWith method

PlexCalendarEvent copyWith({
  1. String? id,
  2. DateTime? start,
  3. String? title,
  4. DateTime? end,
  5. Color? color,
  6. PlexCalendarRecurrence? recurrence,
  7. String? occurrenceOf,
})

Implementation

PlexCalendarEvent copyWith({
  String? id,
  DateTime? start,
  String? title,
  DateTime? end,
  Color? color,
  PlexCalendarRecurrence? recurrence,
  String? occurrenceOf,
}) {
  return PlexCalendarEvent(
    id: id ?? this.id,
    start: start ?? this.start,
    title: title ?? this.title,
    end: end ?? this.end,
    color: color ?? this.color,
    recurrence: recurrence ?? this.recurrence,
    occurrenceOf: occurrenceOf ?? this.occurrenceOf,
  );
}