ClusterMarker constructor

ClusterMarker({
  1. required ILatLong position,
  2. required int markerCount,
  3. int? key,
})

Constructs a ClusterMarker.

position The geographical position of the cluster's center. markerCount The number of markers contained within this cluster. key An optional key to uniquely identify this marker.

Implementation

ClusterMarker({required ILatLong position, required int markerCount, super.key})
  : _markerCount = markerCount,
    _paint = Paint()..color = Colors.red.shade400,
    _textPainter = TextPainter(textDirection: TextDirection.ltr),
    super(latLong: position);