You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(router): resolve type error on multi-select page navigation
Fixes a `_TypeError` that occurred when navigating to the generic `MultiSelectSearchPage`. The error was caused by an incorrect and overly strict type cast of the `itemBuilder` function within the `GoRouter` configuration.
The solution is to accept the `itemBuilder` as a generic `Function` in the router and then correctly invoke it within the `MultiSelectSearchPage` constructor. This change respects Dart's type system and allows strongly-typed functions (e.g., `(Country) => String`) to be passed without causing a runtime crash.
0 commit comments