From 65a0f46ba5fd301f9fa202b9a08585788eb9c5ec Mon Sep 17 00:00:00 2001 From: mootw Date: Sat, 2 Dec 2023 11:58:28 -0600 Subject: [PATCH] remove assertion --- lib/latlong/LatLng.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/latlong/LatLng.dart b/lib/latlong/LatLng.dart index 8aa122a..d048fbc 100644 --- a/lib/latlong/LatLng.dart +++ b/lib/latlong/LatLng.dart @@ -29,9 +29,7 @@ class LatLng { final double latitude; final double longitude; - const LatLng(this.latitude, this.longitude) - : assert(latitude >= -90 && latitude <= 90), - assert(longitude >= -180 && longitude <= 180); + const LatLng(this.latitude, this.longitude); double get latitudeInRad => degToRadian(latitude);