IsUserInArea method

dynamic IsUserInArea(
  1. dynamic latitude,
  2. dynamic longitude
)

Implementation

IsUserInArea(latitude,longitude){
  MapToolkit.LatLng point = MapToolkit.LatLng(latitude, longitude);
  bool geodesic = true;
  bool checkIfUserInArea = MapToolkit.PolygonUtil.containsLocation(point, widget.polygonPoints ?? [], geodesic);
  return checkIfUserInArea;

}