setGeolocationOverride method
Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position
unavailable.
latitude
Mock latitude
longitude
Mock longitude
accuracy
Mock accuracy
Implementation
Future<void> setGeolocationOverride({
num? latitude,
num? longitude,
num? accuracy,
}) async {
await _client.send('Emulation.setGeolocationOverride', {
if (latitude != null) 'latitude': latitude,
if (longitude != null) 'longitude': longitude,
if (accuracy != null) 'accuracy': accuracy,
});
}