copyWith method
Implementation
BasicEvent copyWith({
Object? id,
String? title,
Color? backgroundColor,
DateTime? start,
DateTime? end,
}) {
return BasicEvent(
id: id ?? this.id,
title: title ?? this.title,
backgroundColor: backgroundColor ?? this.backgroundColor,
start: start ?? this.start,
end: end ?? this.end,
);
}