Timeline constructor
const
Timeline({
- required List<
TimelineEventDisplay> events, - bool isLeftAligned = true,
- EdgeInsets padding = const EdgeInsets.all(8),
- ScrollController? controller,
- ScrollPhysics? physics,
- bool shrinkWrap = true,
- bool primary = false,
- bool reverse = false,
- double indicatorSize = 12.0,
- IndexedWidgetBuilder? separatorBuilder,
- Offset altOffset = const Offset(0, 0),
- IndicatorPosition anchor = IndicatorPosition.center,
Implementation
const Timeline(
{required this.events,
this.isLeftAligned = true,
this.padding = const EdgeInsets.all(8),
this.controller,
this.physics,
this.shrinkWrap = true,
this.primary = false,
this.reverse = false,
this.indicatorSize = 12.0,
// item gap will be ignored when custom separatorBuilder is provided
this.separatorBuilder,
this.altOffset = const Offset(0, 0),
this.anchor = IndicatorPosition.center})
: itemCount = events.length;