From 5c488285a1aa5830b60bf9eccbbcdf7e2d4f888d Mon Sep 17 00:00:00 2001 From: Fernando Ferrara Date: Tue, 13 Jun 2023 12:23:53 -0300 Subject: [PATCH] Bind back method to navigateBack method --- lib/src/navigation/router_service.dart | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/src/navigation/router_service.dart b/lib/src/navigation/router_service.dart index fe850f3..c9bea9b 100644 --- a/lib/src/navigation/router_service.dart +++ b/lib/src/navigation/router_service.dart @@ -74,8 +74,7 @@ class RouterService implements RouterServiceInterface { Future pop([T? result]) => router.pop(result); - /// An alias for pop for better readability - Future back({T? result}) => router.pop(result); + void back({T? result}) => router.navigateBack(); RoutingController topMostRouter({bool ignorePagelessRoutes = false}) => router.topMostRouter(