Skip to content
Merged
Next Next commit
- fixed return value of the push method
  • Loading branch information
vlazdra committed Apr 5, 2023
commit 2eaec6aca3b246e10741c1215a2fe4f63671d0d0
4 changes: 2 additions & 2 deletions packages/go_router_builder/lib/src/route_config.dart
Original file line number Diff line number Diff line change
Expand Up @@ -207,8 +207,8 @@ extension $_extensionName on $_className {
void go(BuildContext context) =>
context.go(location${_extraParam != null ? ', extra: $extraFieldName' : ''});

void push(BuildContext context) =>
context.push(location${_extraParam != null ? ', extra: $extraFieldName' : ''});
Future<T?> push<T>(BuildContext context) =>
context.push<T>(location${_extraParam != null ? ', extra: $extraFieldName' : ''});

void pushReplacement(BuildContext context) =>
context.pushReplacement(location${_extraParam != null ? ', extra: $extraFieldName' : ''});
Expand Down