Marker constructor

Marker({
  1. required Widget child,
  2. Widget? icon,
  3. VoidCallback? onTap,
  4. MarkerIconAlignment? iconAlignment,
  5. MarkerPosition position = MarkerPosition.left,
  6. double maxWidth = double.infinity,
})

Creates a new Marker instance, previosly known as TimelineItem.

The child parameter is required and represents the main content of the marker. Other parameters are optional and provide customization for the marker's appearance and behavior.

Implementation

Marker({
  required this.child,
  this.icon,
  this.onTap,
  this.iconAlignment,
  this.position = MarkerPosition.left,
  this.maxWidth = double.infinity,
});