isOutOfBounds method
bool
isOutOfBounds(
- LatLng center
)
Implementation
bool isOutOfBounds(LatLng center) {
if (options.adaptiveBoundaries) {
return !_safeArea!.contains(center);
}
if (options.swPanBoundary != null && options.nePanBoundary != null) {
if (center.latitude < options.swPanBoundary!.latitude ||
center.latitude > options.nePanBoundary!.latitude) {
return true;
} else if (center.longitude < options.swPanBoundary!.longitude ||
center.longitude > options.nePanBoundary!.longitude) {
return true;
}
}
return false;
}