setGeolocationOverride method

  1. @Deprecated('This command is deprecated')
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

Implementation

@Deprecated('This command is deprecated')
Future<void> setGeolocationOverride(
    {num? latitude, num? longitude, num? accuracy}) async {
  await _client.send('Page.setGeolocationOverride', {
    if (latitude != null) 'latitude': latitude,
    if (longitude != null) 'longitude': longitude,
    if (accuracy != null) 'accuracy': accuracy,
  });
}