Tests changes
MODIFY
geolocator_platform_interface/lib/src/implementations/method_channel_geolocator.dart
geolocator_platform_interface/lib/src/implementations/method_channel_geolocator.dart
@@ -228,8 +228,9 @@ class MethodChannelGeolocator extends GeolocatorPlatform {
@override
Future<void> requestTemporaryFullAccuracy() async {
try {
- final accuracyFuture =
- _methodChannel.invokeMethod('requestTemporaryFullAccuracy');
+ final accuracyFuture = await _methodChannel
+ .invokeMethod('requestTemporaryFullAccuracy')
+ .then((value) => value);
return accuracyFuture;
} on PlatformException catch (e) {
_handlePlatformException(e);

MODIFY
geolocator_platform_interface/test/geolocator_platform_interface_test.dart
geolocator_platform_interface/test/geolocator_platform_interface_test.dart
@@ -73,6 +73,20 @@ void main() {
);
});
+ test(
+ // ignore: lines_longer_than_80_chars
+ 'Default implementation of reqquestTemporaryAccuracy should throw unimplemented error',
+ () {
+ // Arrange
+ final geolocatorPlatform = ExtendsGeolocatorPlatform();
+
+ // Act & Assert
+ expect(
+ geolocatorPlatform.requestTemporaryFullAccuracy,
+ throwsUnimplementedError,
+ );
+ });
+
test(
// ignore: lines_longer_than_80_chars
'Default implementation of getCurrentPosition should throw unimplemented error',

Tests changes