throwCheckLatLng function

void throwCheckLatLng(
  1. double latitude,
  2. dynamic longitude
)

Implementation

void throwCheckLatLng(double latitude, longitude) {
  if (latitude < -90 || latitude > 90) {
    throw InvalidDataException('Provided latitude must be in range -90 to 90');
  }
  if (longitude < -180 || longitude > 180) {
    throw InvalidDataException(
        'Provided longitude must be in range -180 to 180');
  }
}