getLocation method

Future<Location> getLocation()

Get current location.

Returns Location.

For example:

Location l = await driver.device.getLocation();
expect(l.longitude != null, true);
expect(l.longitude != null, true);
expect(l.longitude != null, true);

Implementation

Future<Location> getLocation() => _client.send(
    _handler.device.buildGetLocationRequest(),
    _handler.device.parseGetLocationResponse);