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 authored and tomgilder committed Jul 28, 2023
1 parent 620e070 commit e6bc6d6
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 e6bc6d6

Please sign in to comment.