From 107f7051bb76179c2d9121b51c94550ff21b5a75 Mon Sep 17 00:00:00 2001 From: KhalilAmor Date: Sun, 14 Apr 2024 23:10:33 +0300 Subject: [PATCH] return result from back method in router service --- lib/src/navigation/router_service.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/navigation/router_service.dart b/lib/src/navigation/router_service.dart index c9bea9b..fde6711 100644 --- a/lib/src/navigation/router_service.dart +++ b/lib/src/navigation/router_service.dart @@ -74,7 +74,7 @@ class RouterService implements RouterServiceInterface { Future pop([T? result]) => router.pop(result); - void back({T? result}) => router.navigateBack(); + void back({T? result}) => router.pop(result); RoutingController topMostRouter({bool ignorePagelessRoutes = false}) => router.topMostRouter(