diff --git a/packages/route/lib/src/grammar.dart b/packages/route/lib/src/grammar.dart index 951eb438..3f970ba7 100644 --- a/packages/route/lib/src/grammar.dart +++ b/packages/route/lib/src/grammar.dart @@ -192,7 +192,7 @@ class WildcardSegment extends RouteSegment { var items = r.value!.cast(); var a = items[0], b = items[1]; return a - ..addAll(b.params ?? {}) + ..addAll(b.params) .._setTail(b.tail); }); }