Sitelet https://github.com/flutter/flutter/pull/163822
Skip to content

Shorten method signature to make invokations fit one line. - #163822

Merged
polina-c merged 4 commits into
flutter:masterfrom
polina-c:shorten
Feb 24, 2025
Merged

polina-c merged 4 commits into
flutter:masterfrom
polina-c:shorten

Conversation

@polina-c

@polina-c polina-c commented Feb 21, 2025 •

Copy link
Copy Markdown
Contributor

Contributes to #137435.

@github-actions github-actions Bot added framework flutter/packages/flutter repository. See also f: labels. a: animation Animation APIs labels Feb 21, 2025
@polina-c
polina-c marked this pull request as ready for review February 21, 2025 06:38
Comment thread packages/flutter/lib/src/foundation/debug.dart Outdated
///
/// 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) {

Copy link
Copy Markdown
Member

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?

@polina-c polina-c Feb 21, 2025 •

Copy link
Copy Markdown
Contributor Author

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.

@polina-c polina-c Feb 21, 2025 •

Copy link
Copy Markdown
Contributor Author

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.

@polina-c
polina-c requested a review from goderbauer February 21, 2025 23:39

@goderbauer goderbauer left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@polina-c
polina-c added this pull request to the merge queue Feb 24, 2025
Merged via the queue into flutter:master with commit e1cce0b Feb 24, 2025
@polina-c
polina-c deleted the shorten branch February 24, 2025 22:51
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 25, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 26, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 26, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 26, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 26, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 26, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 26, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 27, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request Feb 27, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 20, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 20, 2025
engine-flutter-autoroll added a commit to engine-flutter-autoroll/packages that referenced this pull request May 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

a: animation Animation APIs framework flutter/packages/flutter repository. See also f: labels.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants