contains method
Returns whether or not the Point is contained within the MultiPolygon. This is done by checking if the Point is contained within any of the Polygons. Uses the Ray Casting algorithm.
Example:
MultiPolygon([[LinearRing([Coordinate(1, 2), Coordinate(3, 4), Coordinate(5, 6), Coordinate(1, 2)])]]).contains(Point(2, 2)); // true
Implementation
bool contains(Point point) {
return coordinates.any((poly) => Polygon(poly).contains(point));
}