call method
Given a polygon (and its points), calculate a single position at which the center of the label should be placed
Polygon.points is not guaranteed to be non-empty. If empty, this may throw.
Implementation
@override
LatLng call(Polygon polygon) => LatLng(
polygon.points.map((e) => e.latitude).average,
polygon.points.map((e) => e.longitude).average,
);