copyWith method
Creates a copy with modified properties
Implementation
GanttChartData copyWith({
String? title,
List<GanttTask>? tasks,
List<GanttSection>? sections,
String? dateFormat,
String? axisFormat,
String? excludes,
bool? todayMarker,
}) {
return GanttChartData(
title: title ?? this.title,
tasks: tasks ?? this.tasks,
sections: sections ?? this.sections,
dateFormat: dateFormat ?? this.dateFormat,
axisFormat: axisFormat ?? this.axisFormat,
excludes: excludes ?? this.excludes,
todayMarker: todayMarker ?? this.todayMarker,
);
}