updateMockLocation method
Aggiunge un nuovo metodo per aggiornare la posizione fittizia.
Implementation
@override
Future<void> updateMockLocation(double latitude, double longitude,
{double altitude = 0, int delay = 5000}) async {
try {
await methodChannel.invokeMethod('updateMockLocation', {
'latitude': latitude,
'longitude': longitude,
'altitude': altitude,
'delay': delay
});
} on PlatformException catch (e) {
throw 'Unable to update mock location: ${e.message}';
}
}