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
When trying to get query param that is of type bool using optBool it throws an error. NoSuchMethodError (NoSuchMethodError: Class 'bool' has no instance method 'toLowerCase'.
It appears that the issue is with _params[key]?.toLowerCase()
What operating system do you use?
macOS
Information about the installed tooling
No response
Steps to reproduce the issue
Try to get an optional bool query param.
Expected behavior
No response
Screenshots
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered:
@sebastianbuechler so I have query params that I am trying to retrieve. They are optional. So I am calling _routerService.topRoute.queryParams.optString('someName)
I then get the above error.
If you're expecting a string then you should first do a check on the value from _params[key] to see if it is String then extract the value and toLower it.
I'm not the one trying to use to lowercase it's the stacked package once I comment out the line of code with the error the package works unless I clear cache or update the package and have to comment it out again
Describe the bug
When trying to get query param that is of type bool using optBool it throws an error.
NoSuchMethodError (NoSuchMethodError: Class 'bool' has no instance method 'toLowerCase'.
It appears that the issue is with
_params[key]?.toLowerCase()
What operating system do you use?
macOS
Information about the installed tooling
No response
Steps to reproduce the issue
Try to get an optional bool query param.
Expected behavior
No response
Screenshots
No response
Additional Context
No response
The text was updated successfully, but these errors were encountered: