Marker constructor
Marker({
- required Widget child,
- Widget? icon,
- VoidCallback? onTap,
- MarkerIconAlignment? iconAlignment,
- MarkerPosition position = MarkerPosition.left,
- 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,
});