swipeBack abstract method
Mimics the swipe back (left to right) gesture.
dy determines the vertical offset of the swipe. It must be in the inclusive 0-1 range.
appId optionally specifies the application ID to target.
This is equivalent to: $.native.swipe( from: Offset(0, dy), to: Offset(1, dy), appId: appId, );
Example usage:
await tester.swipeBack(dy: 0.8); // Swipe back at 1/5 height of the screen
await tester.swipeBack(); // Swipe back at the center of the screen
Implementation
Future<void> swipeBack({double dy = 0.5, String? appId});