Marker constructor

const Marker({
  1. required String id,
  2. required LatLng position,
  3. VoidCallback? onTap,
  4. Annotation? annotation = const Annotation(),
  5. MarkerIcon? icon,
  6. double zIndex = 0.0,
  7. Anchor? anchor,
  8. int? heading,
})

Implementation

const Marker({
  required this.id,
  required this.position,
  this.onTap,
  this.annotation = const Annotation(),
  this.icon,
  this.zIndex = 0.0,
  this.anchor,
  this.heading,
});