area property
Gets the area of the geometry.
This should be implemented by subclasses to compute the correct area.
Implementation
@override
double get area {
var exteriorRing = coordinates[0];
var area = getGeographicArea(exteriorRing);
for (var i = 1; i < coordinates.length; i++) {
var interiorRing = coordinates[i];
area -= getGeographicArea(interiorRing);
}
return area;
}