copyWith method

GanttChartData copyWith({
  1. String? title,
  2. List<GanttTask>? tasks,
  3. List<GanttSection>? sections,
  4. String? dateFormat,
  5. String? axisFormat,
  6. String? excludes,
  7. bool? todayMarker,
})

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