containPoint method

LatLng containPoint(
  1. LatLng? point,
  2. 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),
    );
  }
}