Cluster constructor

const Cluster(
  1. ClusterManagerId clusterManagerId,
  2. List<MarkerId> markerIds, {
  3. required LatLng position,
  4. required LatLngBounds bounds,
})

Creates a cluster with its location LatLng, bounds LatLngBounds, and list of MarkerIds in the cluster.

Implementation

const Cluster(
  this.clusterManagerId,
  this.markerIds, {
  required this.position,
  required this.bounds,
}) : assert(markerIds.length > 0);