Skip to content

Commit

Permalink
fix onUnknownRoute exception on back
Browse files Browse the repository at this point in the history
  • Loading branch information
limexp committed Aug 7, 2022
1 parent e6f04ec commit 91968a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/src/route_data.dart
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ class RouteData {
requestSource: RequestSource.values.firstWhere(
(source) => source.toString() == requestSource,
),
pathTemplate: state['pathTemplate'] as String,
pathTemplate: state['pathTemplate'] as String?,
pathParameters: (state['pathParameters'] as Map<String, dynamic>)
.cast<String, String>(),
historyIndex: state['historyIndex'] as int?,
Expand Down

0 comments on commit 91968a3

Please sign in to comment.