Skip to content

Commit 782687f

Browse files
author
Lukasz
committed
Format.
1 parent db600a6 commit 782687f

File tree

5 files changed

+15
-14
lines changed

5 files changed

+15
-14
lines changed

example/lib/tab_location.dart

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,7 @@ class _TabLocationState extends State<TabLocation> {
3636
_onCurrentPressed() {
3737
final int id = _createLocation('current', Colors.lightGreen);
3838
_listenToLocation(
39-
id,
40-
Geolocation.currentLocation(accuracy: LocationAccuracy.best));
39+
id, Geolocation.currentLocation(accuracy: LocationAccuracy.best));
4140
}
4241

4342
_onSingleUpdatePressed() async {

example/lib/tab_settings.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,8 @@ class _TabSettingsState extends State<TabSettings> {
3232
}
3333

3434
_requestLocationPermissionPressed() async {
35-
final GeolocationResult result = await Geolocation.requestLocationPermission();
35+
final GeolocationResult result =
36+
await Geolocation.requestLocationPermission();
3637
if (mounted) {
3738
setState(() {
3839
_requestPermissionResult = result;

lib/channel/codec.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,4 @@ class _JsonCodec {
103103
'displacementFilter': request.displacementFilter,
104104
'inBackground': request.inBackground,
105105
};
106-
107-
108106
}

lib/channel/location_channel.dart

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -30,22 +30,27 @@ class _LocationChannel {
3030
// Every data from channel stream will be forwarded to the subscriptions
3131
List<_LocationUpdatesSubscription> _locationUpdatesSubscriptions = [];
3232

33-
Future<GeolocationResult> isLocationOperational(LocationPermission permission) async {
34-
final response = await _invokeChannelMethod(
35-
_loggingTag, _channel, 'isLocationOperational', _Codec.encodeLocationPermission(permission));
33+
Future<GeolocationResult> isLocationOperational(
34+
LocationPermission permission) async {
35+
final response = await _invokeChannelMethod(_loggingTag, _channel,
36+
'isLocationOperational', _Codec.encodeLocationPermission(permission));
3637
return _Codec.decodeResult(response);
3738
}
3839

3940
Future<GeolocationResult> requestLocationPermission(
4041
LocationPermission permission) async {
4142
final response = await _invokeChannelMethod(
42-
_loggingTag, _channel, 'requestLocationPermission', _Codec.encodeLocationPermission(permission));
43+
_loggingTag,
44+
_channel,
45+
'requestLocationPermission',
46+
_Codec.encodeLocationPermission(permission));
4347
return _Codec.decodeResult(response);
4448
}
4549

46-
Future<LocationResult> lastKnownLocation(LocationPermission permission) async {
47-
final response =
48-
await _invokeChannelMethod(_loggingTag, _channel, 'lastKnownLocation', _Codec.encodeLocationPermission(permission));
50+
Future<LocationResult> lastKnownLocation(
51+
LocationPermission permission) async {
52+
final response = await _invokeChannelMethod(_loggingTag, _channel,
53+
'lastKnownLocation', _Codec.encodeLocationPermission(permission));
4954
return _Codec.decodeLocationResult(response);
5055
}
5156

lib/channel/param.dart

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,6 @@ class _LocationUpdatesRequest {
2020
final LocationAccuracy accuracy;
2121
final bool inBackground;
2222
final double displacementFilter;
23-
24-
2523
}
2624

2725
enum _LocationUpdateStrategy { current, single, continuous }

0 commit comments

Comments
 (0)