setOrientation method
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);