pushFromRight<T> static method
Future<T?>
pushFromRight<T>(
- Widget? screen, {
- bool prohibitSwipeBack = false,
- BuildContext? context,
Push screen from right to left
On ios "Swipe back gesture" is default Set prohibitSwipeBack true if you don't want allow swipe back. If you provide context, you can nest navigate in your specific context
Implementation
static Future<T?> pushFromRight<T>(
Widget? screen, {
bool prohibitSwipeBack = false,
BuildContext? context,
}) async {
if (screen == null) {
return null;
}
return navigatorState(context)?.push(
getPushRightRoute(screen,
prohibitSwipeBack: prohibitSwipeBack, context: context) as Route<T>,
);
}