NeshanMarker constructor

const NeshanMarker({
  1. required String id,
  2. required LatLng position,
  3. Color? color,
  4. bool draggable = false,
  5. String? title,
})

Creates a new marker.

id is a unique identifier for the marker. position is the location where the marker should be displayed. color is an optional Color object (e.g., Colors.red, or null for default). draggable determines whether the marker can be dragged (default: false). title is optional text to display in a popup when the marker is tapped.

Implementation

const NeshanMarker({
  required this.id,
  required this.position,
  this.color,
  this.draggable = false,
  this.title,
});