Apply dart format to all files

This commit is contained in:
dmit.b
2026-05-15 19:09:25 +03:00
parent 6497c1eebf
commit 69f3d09e62
11 changed files with 191 additions and 171 deletions
+9 -4
View File
@@ -4,10 +4,15 @@ import '../config/api.dart';
class GeoService {
final http.Client _client;
GeoService({http.Client? client}) : _client = client ?? http.Client();
Future<void> updatePosition(String token, String id, double x, double y) async {
Future<void> updatePosition(
String token,
String id,
double x,
double y,
) async {
final response = await _client.put(
Uri.parse('${ApiConfig.geoUrl}?id=$id'),
headers: {
@@ -16,9 +21,9 @@ class GeoService {
},
body: jsonEncode({'x': x, 'y': y}),
);
if (response.statusCode != 200) {
throw Exception('Failed to update position');
}
}
}
}