TimelineWidget constructor

const TimelineWidget({
  1. Key? key,
  2. required List<Marker> items,
  3. required TimelineProperties properties,
  4. ScrollController? controller,
  5. ScrollPhysics? physics,
  6. bool shrinkWrap = false,
  7. bool reverse = false,
  8. double maxWidth = double.infinity,
  9. double horizontalPadding = 16,
  10. MarkerIconAlignment iconAlignment = MarkerIconAlignment.top,
})

Creates a new TimelineWidget.

The items and properties parameters are required. Other parameters provide additional customization options for the timeline's appearance and behavior.

Implementation

const TimelineWidget({
  Key? key,
  required this.items,
  required this.properties,
  this.controller,
  this.physics,
  this.shrinkWrap = false,
  this.reverse = false,
  this.maxWidth = double.infinity,
  this.horizontalPadding = 16,
  this.iconAlignment = MarkerIconAlignment.top,
}) : super(key: key);