-
Notifications
You must be signed in to change notification settings - Fork 29.7k
Shorten method signature to make invokations fit one line. #163822
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
| /// | ||
| /// Returns true to make it easier to be wrapped into `assert`. | ||
| bool debugMaybeDispatchObjectCreated(String library, String className, Object object) { | ||
| bool debugMaybeDispatchCreated(String flutterLibrary, String className, Object object) { |
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.
Why are we limiting this to flutter-internal use only? Wouldn't a third-party package potentially want to call use this as well?
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.
In leak tracker documentation on how to instrument custom objects, I will suggest to either use similar debug only helper from leak_tracker or, if they care about size even for debug mode, create their own helper.
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.
I do not see a good solution that will be both compact for flutter and useable for third party packages.
I am open for suggestions, if you have something in mind.
goderbauer
left a comment
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.
LGTM
Contributes to #137435.