isPointInsidePolygon method
- LatLng position
Implementation
bool isPointInsidePolygon(LatLng position) {
bool outHoles = length > 1
? sublist(1)
.map((List<List<double>> e) {
return !<List<List<double>>>[e]._isPointInsidePolygon(position);
})
.every((bool e) => e)
: true;
return _isPointInsidePolygon(position) && outHoles;
}