onClusterTap method
Called when a marker cluster is tapped.
Implementation
@override
void onClusterTap(PlatformCluster cluster) {
streamController.add(
ClusterTapEvent(
mapId,
Cluster(
ClusterManagerId(cluster.clusterManagerId),
// See comment in messages.dart for why this is force-unwrapped.
cluster.markerIds.map((String? id) => MarkerId(id!)).toList(),
position: _latLngFromPlatformLatLng(cluster.position),
bounds: _latLngBoundsFromPlatformLatLngBounds(cluster.bounds),
),
),
);
}