copyWith method

BasicEvent copyWith({
  1. Object? id,
  2. String? title,
  3. Color? backgroundColor,
  4. DateTime? start,
  5. DateTime? end,
})

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,
  );
}