isOverlaps method
Implementation
bool isOverlaps(LatLngBounds bounds) {
if (!isValid) {
return false;
}
// check if bounding box rectangle is outside the other,
// if it is then it's considered not overlapping
if (_sw!.lat > bounds._ne!.lat ||
_ne!.lat < bounds._sw!.lat ||
_ne!.lng < bounds._sw!.lng ||
_sw!.lng > bounds._ne!.lng) {
return false;
}
return true;
}