-
Notifications
You must be signed in to change notification settings - Fork 29.1k
Replace some dynamic
to Object?
type
#80772
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
Conversation
It looks like this pull request may not have tests. Please make sure to add tests before merging. If you need an exemption to this rule, contact Hixie on the #hackers channel in Chat. If you are not sure if you need tests, consider this rule of thumb: the purpose of a test is to make sure someone doesn't accidentally revert the fix. Ask yourself, is there anything in your PR that you feel it is important we not accidentally revert back to how it was before your fix? Reviewers: Read the Tree Hygiene page and make sure this patch meets those guidelines before LGTMing. |
@Hixie hi, can this test-exempt? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR looks good, minus one analyzer failure.
I'm wondering if it really isn't possible to test for this change, since it'd be quite easy to just start using dynamic
everywhere instead of Object?
in the codebase in the future
key as String?, | ||
List<Object>.from(value as List<dynamic>, growable: true), | ||
List<Object>.from(value as List<Object?>, growable: true), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is causing the analyzer failure. I believe it's expecting a List<Object>
, but you're giving it a List<Object?>
test-exempt: code refactor without semantic change |
…utter#80965) This reverts commit 12a2e68.
…81076 (#81155) * Revert "Replace some `dynamic` to `Object?` type (#80772)" (#80965) This reverts commit 12a2e68. * Add frontend_server_client to dependency allowlist (#80912) * Revert "[RenderEditable] Dont paint caret when selection is invalid (#79607)" (#81076) This reverts commit 0f8148e. * Convert AnimatedSize to a StatefulWidget (#80554) Co-authored-by: Jenn Magder <magder@google.com> Co-authored-by: Jason Simmons <jason-simmons@users.noreply.github.com>
Replace some
dynamic
toObject?
type