setOrientation method

Future<void> setOrientation(
  1. Orientation orientation
)

Set the device orientation.

Example:

await driver.device.setOrientation(Orientation.LANDSCAPE);

Implementation

Future<void> setOrientation(Orientation orientation) => _client.send(
    _handler.device.buildSetOrientationRequest(orientation),
    _handler.device.parseSetOrientationResponse);