Cluster<T extends ClusterItem>.fromItems constructor
Cluster<T extends ClusterItem>.fromItems (
- Iterable<
T> items
Implementation
Cluster.fromItems(Iterable<T> items)
: this.items = items,
this.location = LatLng(
items.fold<double>(0.0, (p, c) => p + c.location.latitude) /
items.length,
items.fold<double>(0.0, (p, c) => p + c.location.longitude) /
items.length);