area property
double
get
area
The area of the MultiPolygon in square meters.
Example:
MultiPolygon([[LinearRing([Coordinate(1, 2), Coordinate(3, 4), Coordinate(5, 6), Coordinate(1, 2)])]]).area; // 0.0
Implementation
double get area {
return coordinates.fold(
0.0, (double acc, poly) => acc + Polygon(poly).area);
}