Skip to content

Commit

Permalink
fix: Bind back method to navigateBack method (#22)
Browse files Browse the repository at this point in the history
Bind back method to navigateBack method
  • Loading branch information
ferrarafer authored Jun 21, 2023
1 parent be06bde commit bf9b491
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/src/navigation/router_service.dart
Original file line number Diff line number Diff line change
Expand Up @@ -74,8 +74,7 @@ class RouterService implements RouterServiceInterface {

Future<bool> pop<T extends Object?>([T? result]) => router.pop(result);

/// An alias for pop for better readability
Future<bool> back<T extends Object?>({T? result}) => router.pop(result);
void back<T extends Object?>({T? result}) => router.navigateBack();

RoutingController topMostRouter({bool ignorePagelessRoutes = false}) =>
router.topMostRouter(
Expand Down

0 comments on commit bf9b491

Please sign in to comment.