Commit 000ac85
committed
fix(feed): resolve type error on returning from multi-select page
Fixes a `_TypeError` that occurred when popping the `MultiSelectSearchPage`. The error was caused by a type mismatch between the `Set<dynamic>` returned by the generic page and the `Future<Set<Country>>` expected by the calling page.
The solution is to change the expected return type of `pushNamed` to `Set<dynamic>` and then safely cast the resulting set to `Set<Country>` before updating the state. This ensures type safety and resolves the runtime crash.1 parent 8ec4dba commit 000ac85
1 file changed
+4
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
95 | 95 | | |
96 | 96 | | |
97 | 97 | | |
98 | | - | |
| 98 | + | |
99 | 99 | | |
100 | 100 | | |
101 | 101 | | |
| |||
106 | 106 | | |
107 | 107 | | |
108 | 108 | | |
109 | | - | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
110 | 112 | | |
111 | 113 | | |
112 | 114 | | |
| |||
0 commit comments