-
Notifications
You must be signed in to change notification settings - Fork 3.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
_assertParameterTypesAreCorrect throws null check error #12287
Labels
platform: all
Issues / PRs which are for all platforms.
plugin: analytics
type: bug
Something isn't working
Comments
AK47-23
added
Needs Attention
This issue needs maintainer attention.
type: bug
Something isn't working
labels
Feb 5, 2024
Reproducible using the plugin example app. To reproduce, modify any of the parameters for logEvent to null and call the method. It will throw an assertion error. This is an assert in the plugin so it cuts across all the platforms. It might be better to change the type of the parameters object as pointed out above so that users of the plugin know that they can't set null values. |
danagbemava-nc
added
plugin: analytics
and removed
Needs Attention
This issue needs maintainer attention.
triage
Issue is currently being triaged.
labels
Feb 5, 2024
10 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
platform: all
Issues / PRs which are for all platforms.
plugin: analytics
type: bug
Something isn't working
Bug report
Describe the bug
Firebase analytics logEvent allows paramters to be Map<String, Object?>?, but if object is null it throws the following error:
Steps to reproduce
Steps to reproduce the behavior:
Expected behavior
If you are checking whether the value is string or num, then it shouldn't allow the object to be null right?
Paramters accept Map<String, Object>? rather than Map<String, Object?>?.
Sample project
Here there's no syntax error but breaks the flow of the app during execution
Additional context
Add any other context about the problem here.
Flutter doctor
Run
flutter doctor
and paste the output below:Click To Expand
Flutter dependencies
Run
flutter pub deps -- --style=compact
and paste the output below:Click To Expand
The text was updated successfully, but these errors were encountered: