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