Timeline constructor

const Timeline({
  1. required List<TimelineEventDisplay> events,
  2. bool isLeftAligned = true,
  3. EdgeInsets padding = const EdgeInsets.all(8),
  4. ScrollController? controller,
  5. ScrollPhysics? physics,
  6. bool shrinkWrap = true,
  7. bool primary = false,
  8. bool reverse = false,
  9. double indicatorSize = 12.0,
  10. IndexedWidgetBuilder? separatorBuilder,
  11. Offset altOffset = const Offset(0, 0),
  12. 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;