copyWith method
Creates a copy of this event with the given fields updated.
Implementation
CalendarMonthEvent copyWith({
String? id,
DateTime? startDate,
DateTime? endDate,
String? title,
Color? background,
String? iconUrl,
Color? textColor,
bool? isReadOnly,
}) {
return CalendarMonthEvent(
id: id ?? this.id,
startDate: startDate ?? this.startDate,
endDate: endDate ?? this.endDate,
title: title ?? this.title,
background: background ?? this.background,
iconUrl: iconUrl ?? this.iconUrl,
textColor: textColor ?? this.textColor,
isReadOnly: isReadOnly ?? this.isReadOnly,
);
}