Format and analyze issues
MODIFY
geolocator_platform_interface/lib/src/geolocator_platform_interface.dart
geolocator_platform_interface/lib/src/geolocator_platform_interface.dart
import 'dart:async';
import 'dart:math';
-import 'package:geolocator_platform_interface/geolocator_platform_interface.dart';
import 'package:plugin_platform_interface/plugin_platform_interface.dart';
import 'package:vector_math/vector_math.dart';
+import '../geolocator_platform_interface.dart';
import 'enums/enums.dart';
import 'implementations/method_channel_geolocator.dart';
import 'models/models.dart';

MODIFY
geolocator_platform_interface/lib/src/implementations/method_channel_geolocator.dart
geolocator_platform_interface/lib/src/implementations/method_channel_geolocator.dart
@@ -228,8 +228,8 @@ class MethodChannelGeolocator extends GeolocatorPlatform {
@override
Future<LocationAccuracyStatus> requestTemporaryFullAccuracy() async {
try {
- final int status = await _methodChannel
- .invokeMethod('requestTemporaryFullAccuracy');
+ final int status =
+ await _methodChannel.invokeMethod('requestTemporaryFullAccuracy');
return LocationAccuracyStatus.values[status];
} on PlatformException catch (e) {
_handlePlatformException(e);

MODIFY
geolocator_platform_interface/test/src/implementations/method_channel_geolocator_test.dart
geolocator_platform_interface/test/src/implementations/method_channel_geolocator_test.dart
@@ -134,37 +134,38 @@ void main() {
});
});
- group('requestTemporaryFullAccuracy: When requesting temporary full'
+ group(
+ 'requestTemporaryFullAccuracy: When requesting temporary full'
'accuracy.', () {
- test('Should receive reduced accuracy if Location Accuracy is pinned to'
+ test(
+ 'Should receive reduced accuracy if Location Accuracy is pinned to'
' reduced', () async {
// Arrange
MethodChannelMock(
channelName: 'flutter.baseflow.com/geolocator',
method: 'requestTemporaryFullAccuracy',
- result: 0
- );
+ result: 0);
// Act
- final accuracy = await MethodChannelGeolocator()
- .requestTemporaryFullAccuracy();
+ final accuracy =
+ await MethodChannelGeolocator().requestTemporaryFullAccuracy();
// Assert
expect(accuracy, LocationAccuracyStatus.reduced);
});
- test('Should receive reduced accuracy if Location Accuracy is already set'
+ test(
+ 'Should receive reduced accuracy if Location Accuracy is already set'
' to precise location accuracy', () async {
// Arrange
MethodChannelMock(
channelName: 'flutter.baseflow.com/geolocator',
method: 'requestTemporaryFullAccuracy',
- result: 1
- );
+ result: 1);
// Act
- final accuracy = await MethodChannelGeolocator()
- .requestTemporaryFullAccuracy();
+ final accuracy =
+ await MethodChannelGeolocator().requestTemporaryFullAccuracy();
// Assert
expect(accuracy, LocationAccuracyStatus.precise);
@@ -190,7 +191,6 @@ void main() {
expect(locationAccuracy, LocationAccuracyStatus.reduced);
});
-
test('Should receive reduced accuracy if Location Accuracy is reduced',
() async {
// Arrange

Format and analyze issues