GanttChartData class

Data for a complete Gantt chart

Constructors

GanttChartData({String? title, required List<GanttTask> tasks, List<GanttSection> sections = const [], String dateFormat = 'YYYY-MM-DD', String? axisFormat, String? excludes, bool todayMarker = true})
Creates Gantt chart data
const

Properties

axisFormat → String?
Axis display format
final
dateFormat → String
Date format string
final
excludes → String?
Days to exclude (weekends, holidays)
final
hashCode → int
The hash code for this object.
no setterinherited
maxDate → DateTime?
Gets the latest end date among all tasks
no setter
minDate → DateTime?
Gets the earliest start date among all tasks
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
sections → List<GanttSection>
Sections organizing tasks
final
tasks → List<GanttTask>
All tasks in the Gantt chart
final
title → String?
Optional title for the Gantt chart
final
todayMarker → bool
Whether to show today marker
final
totalDays → int
Gets the total duration in days
no setter

Methods

copyWith({String? title, List<GanttTask>? tasks, List<GanttSection>? sections, String? dateFormat, String? axisFormat, String? excludes, bool? todayMarker}) → GanttChartData
Creates a copy with modified properties
getTask(String id) → GanttTask?
Gets a task by its ID
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited