From ddcc256a6b178704b928cc05d27acbf205e3cc33 Mon Sep 17 00:00:00 2001 From: Kelven G Date: Mon, 16 Dec 2024 14:51:17 -0300 Subject: [PATCH] dart format --- mapbox_gl_platform_interface/lib/src/location.dart | 7 +++++-- mapbox_gl_platform_interface/lib/src/ui.dart | 6 ++++-- 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/mapbox_gl_platform_interface/lib/src/location.dart b/mapbox_gl_platform_interface/lib/src/location.dart index 74be5839..879cd74c 100644 --- a/mapbox_gl_platform_interface/lib/src/location.dart +++ b/mapbox_gl_platform_interface/lib/src/location.dart @@ -14,7 +14,8 @@ class LatLng { /// The longitude is normalized to the half-open interval from -180.0 /// (inclusive) to +180.0 (exclusive) const LatLng(double latitude, double longitude) - : latitude = (latitude < -90.0 ? -90.0 : (90.0 < latitude ? 90.0 : latitude)), + : latitude = + (latitude < -90.0 ? -90.0 : (90.0 < latitude ? 90.0 : latitude)), longitude = (longitude + 180.0) % 360.0 - 180.0; /// The latitude in degrees between -90.0 and 90.0, both inclusive. @@ -99,7 +100,9 @@ class LatLngBounds { @override bool operator ==(Object o) { - return o is LatLngBounds && o.southwest == southwest && o.northeast == northeast; + return o is LatLngBounds && + o.southwest == southwest && + o.northeast == northeast; } @override diff --git a/mapbox_gl_platform_interface/lib/src/ui.dart b/mapbox_gl_platform_interface/lib/src/ui.dart index 54173725..6a766d8f 100644 --- a/mapbox_gl_platform_interface/lib/src/ui.dart +++ b/mapbox_gl_platform_interface/lib/src/ui.dart @@ -29,7 +29,8 @@ class MapboxStyles { /// Satellite Streets: Global satellite and aerial imagery with unobtrusive labels. Using this /// constant means your map style will always use the latest version and may change as we /// improve the style. - static const String SATELLITE_STREETS = "mapbox://styles/mapbox/satellite-streets-v11"; + static const String SATELLITE_STREETS = + "mapbox://styles/mapbox/satellite-streets-v11"; /// Traffic Day: Color-coded roads based on live traffic congestion data. Traffic data is currently /// available in @@ -128,7 +129,8 @@ class MinMaxZoomPreference { final double? maxZoom; /// Unbounded zooming. - static const MinMaxZoomPreference unbounded = MinMaxZoomPreference(null, null); + static const MinMaxZoomPreference unbounded = + MinMaxZoomPreference(null, null); dynamic toJson() => [minZoom, maxZoom];