pressBack method
Presses the back button.
This method throws on iOS, because there's no back button.
See also:
- developer.android.com/reference/androidx/test/uiautomator/UiDevice#pressback, which is used on Android.
Implementation
Future<void> pressBack() =>
_platform.action(android: _platform.android.pressBack);