Skip to content
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

Avoid expanding the parameter type of operator== #1017

Merged
merged 3 commits into from
Dec 5, 2023

Conversation

srawlins
Copy link
Contributor

@srawlins srawlins commented Dec 5, 2023

Object.operator== takes an Object, and no Dart runtime passes a null value to an == implementation. SvgTheme's implementation should not have an expanded parameter type of dynamic.

See flutter/flutter#117838 for the overarching issue for Flutter.

srawlins and others added 2 commits December 5, 2023 12:35
Object.operator== takes an `Object`, and no Dart runtime passes a `null` value to an `==` implementation. SvgTheme's implementation should not have an expanded parameter type of `dynamic`.

See flutter/flutter#117838 for the overarching issue for Flutter.
@srawlins
Copy link
Contributor Author

srawlins commented Dec 5, 2023

Analysis error in CI looks unrelated.

@dnfield
Copy link
Owner

dnfield commented Dec 5, 2023

This looks good, should pass CI after this merge, thanks!

@dnfield dnfield merged commit a3911bb into dnfield:master Dec 5, 2023
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants