containPoint method
LatLng
containPoint(
- LatLng? point,
- LatLng? fallback
Implementation
LatLng containPoint(LatLng? point, LatLng? fallback) {
if (adaptiveBoundaries) {
return _safeArea!.containPoint(point, fallback);
} else {
return LatLng(
point!.latitude.clamp(swPanBoundary!.latitude, nePanBoundary!.latitude),
point.longitude
.clamp(swPanBoundary!.longitude, nePanBoundary!.longitude),
);
}
}