setGeolocationOverride method

Future<void> setGeolocationOverride({
  1. num? latitude,
  2. num? longitude,
  3. num? accuracy,

Overrides the Geolocation Position or Error. Omitting any of the parameters emulates position unavailable. latitude Mock latitude longitude Mock longitude accuracy Mock accuracy


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,