isPointInPolygons static method

bool isPointInPolygons(
  1. LatLng point,
  2. Set<Polygon> polygons
)

Implementation

static bool isPointInPolygons(LatLng point , Set<Polygon> polygons) {
  bool _isPointInPolygon = true;

  for (Polygon polygon in polygons) {
    _isPointInPolygon = _isPointInPolygon &&
        containsLocationAtLatLng(
            point.latitude, point.longitude, polygon.points, true);
  }

  return _isPointInPolygon;

}