Skip to content

Commit

Permalink
dart format
Browse files Browse the repository at this point in the history
  • Loading branch information
irvine5k committed Dec 16, 2024
1 parent f41c829 commit ddcc256
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 4 deletions.
7 changes: 5 additions & 2 deletions mapbox_gl_platform_interface/lib/src/location.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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
Expand Down
6 changes: 4 additions & 2 deletions mapbox_gl_platform_interface/lib/src/ui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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() => <dynamic>[minZoom, maxZoom];

Expand Down

0 comments on commit ddcc256

Please sign in to comment.