TimelineItem constructor
TimelineItem({})
A widget that positions a child in a DynamicTimeline and can be resized with drag gestures on the start and end sides.
Implementation
TimelineItem({
Key? key,
required this.startDateTime,
required this.endDateTime,
this.position = 0,
this.onStartDateTimeChanged,
this.onEndDateTimeChanged,
this.onStartDateTimeUpdated,
this.onEndDateTimeUpdated,
required Widget child,
}) : assert(
startDateTime.isBefore(endDateTime),
'startDateTime must be before endDateTime: '
'starDateTime: $startDateTime --- endDateTime: $endDateTime',
),
super(key: key, child: child);