Skip to content

Commit

Permalink
run dart format .
Browse files Browse the repository at this point in the history
  • Loading branch information
josxha committed May 17, 2024
1 parent 3e5609d commit 5cd776d
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 20 deletions.
6 changes: 4 additions & 2 deletions lib/src/controller.dart
Original file line number Diff line number Diff line change
Expand Up @@ -143,11 +143,13 @@ class MaplibreMapController extends ChangeNotifier {
break;
case AnnotationType.circle:
circleManager = CircleManager(this,
onTap: onCircleTapped.call, enableInteraction: enableInteraction);
onTap: onCircleTapped.call,
enableInteraction: enableInteraction);
break;
case AnnotationType.symbol:
symbolManager = SymbolManager(this,
onTap: onSymbolTapped.call, enableInteraction: enableInteraction);
onTap: onSymbolTapped.call,
enableInteraction: enableInteraction);
break;
default:
}
Expand Down
12 changes: 6 additions & 6 deletions maplibre_gl_platform_interface/lib/src/camera.dart
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,12 @@ class CameraPosition {
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is CameraPosition &&
runtimeType == other.runtimeType &&
bearing == other.bearing &&
target == other.target &&
tilt == other.tilt &&
zoom == other.zoom;
other is CameraPosition &&
runtimeType == other.runtimeType &&
bearing == other.bearing &&
target == other.target &&
tilt == other.tilt &&
zoom == other.zoom;

@override
int get hashCode => Object.hash(bearing, target, tilt, zoom);
Expand Down
4 changes: 3 additions & 1 deletion maplibre_gl_platform_interface/lib/src/location.dart
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,9 @@ class LatLng {

@override
bool operator ==(Object other) {
return other is LatLng && other.latitude == latitude && other.longitude == longitude;
return other is LatLng &&
other.latitude == latitude &&
other.longitude == longitude;
}

@override
Expand Down
4 changes: 2 additions & 2 deletions maplibre_gl_platform_interface/lib/src/symbol.dart
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ class Symbol implements Annotation {

@override
void translate(LatLng delta) {
options = options
.copyWith(SymbolOptions(geometry: options.geometry! + delta));
options =
options.copyWith(SymbolOptions(geometry: options.geometry! + delta));
}
}

Expand Down
14 changes: 7 additions & 7 deletions maplibre_gl_platform_interface/lib/src/ui.dart
Original file line number Diff line number Diff line change
Expand Up @@ -67,9 +67,9 @@ class CameraTargetBounds {
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is CameraTargetBounds &&
runtimeType == other.runtimeType &&
bounds == other.bounds;
other is CameraTargetBounds &&
runtimeType == other.runtimeType &&
bounds == other.bounds;

@override
int get hashCode => bounds.hashCode;
Expand Down Expand Up @@ -103,10 +103,10 @@ class MinMaxZoomPreference {
@override
bool operator ==(Object other) =>
identical(this, other) ||
other is MinMaxZoomPreference &&
runtimeType == other.runtimeType &&
minZoom == other.minZoom &&
maxZoom == other.maxZoom;
other is MinMaxZoomPreference &&
runtimeType == other.runtimeType &&
minZoom == other.minZoom &&
maxZoom == other.maxZoom;

@override
int get hashCode => Object.hash(minZoom, maxZoom);
Expand Down
3 changes: 1 addition & 2 deletions maplibre_gl_web/lib/src/maplibre_web_gl_platform.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,7 @@ class MaplibreMapController extends MapLibreGlPlatform
Set<Factory<OneSequenceGestureRecognizer>>? gestureRecognizers) {
_creationParams = creationParams;
_registerViewFactory(onPlatformViewCreated, hashCode);
return HtmlElementView(
viewType: 'plugins.flutter.io/mapbox_gl_$hashCode');
return HtmlElementView(viewType: 'plugins.flutter.io/mapbox_gl_$hashCode');
}

@override
Expand Down

0 comments on commit 5cd776d

Please sign in to comment.