Skip to content
This repository was archived by the owner on Apr 14, 2026. It is now read-only.

Commit 5f20d70

Browse files
committed
feat: update removeRouteBelow method
1 parent f575fc1 commit 5f20d70

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

lib/src/mock_navigator.dart

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -319,7 +319,10 @@ class _MockNavigatorState extends NavigatorState {
319319
}
320320

321321
@override
322-
void removeRouteBelow(Route<dynamic> anchorRoute) {
323-
return _navigator.removeRouteBelow(anchorRoute);
322+
void removeRouteBelow<T extends Object?>(
323+
Route<dynamic> anchorRoute, [
324+
T? result,
325+
]) {
326+
return _navigator.removeRouteBelow(anchorRoute, result);
324327
}
325328
}

0 commit comments

Comments
 (0)