From 7f257d173f9f55ff14ccced25e96f21d0c793e2d Mon Sep 17 00:00:00 2001 From: thomashii Date: Sun, 21 Mar 2021 09:01:38 +0800 Subject: [PATCH] Fixed null safety --- packages/route/lib/src/grammar.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }); }