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