-
Notifications
You must be signed in to change notification settings - Fork 3.6k
[pigeon] Dart Class Equality #8788
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
packages/pigeon/example/app/lib/src/event_channel_messages.g.dart
Outdated
Show resolved
Hide resolved
packages/pigeon/example/app/lib/src/event_channel_messages.g.dart
Outdated
Show resolved
Hide resolved
packages/pigeon/example/app/lib/src/event_channel_messages.g.dart
Outdated
Show resolved
Hide resolved
packages/pigeon/example/app/lib/src/event_channel_messages.g.dart
Outdated
Show resolved
Hide resolved
packages/pigeon/example/app/lib/src/event_channel_messages.g.dart
Outdated
Show resolved
Hide resolved
|
I didn't quite do what you requested, but I did something. |
stuartmorgan-g
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
| } | ||
|
|
||
| bool _deepEquals(Object? a, Object? b) { | ||
| if (a is List && b is List) { |
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.
Not a fan of the record+pattern approach, eh? ;)
| bool _deepEquals(Object? a, Object? b) { | ||
| if (a is List && b is List) { | ||
| return a.length == b.length && | ||
| a.indexed |
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.
Nice, I forgot indexed was a thing.
packages/pigeon/platform_tests/shared_test_plugin_code/lib/integration_tests.dart
Outdated
Show resolved
Hide resolved
flutter/packages@dd781d4...cf9b0f2 2025-03-20 [email protected] [pigeon] Dart Class Equality (flutter/packages#8788) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
flutter/packages@dd781d4...cf9b0f2 2025-03-20 [email protected] [pigeon] Dart Class Equality (flutter/packages#8788) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Adds Equality and Hash methods to custom classes in Dart. I am still working on other languages, but this can be a standalone pr while I complete the others. fixes flutter/flutter#118087
flutter/packages@dd781d4...cf9b0f2 2025-03-20 [email protected] [pigeon] Dart Class Equality (flutter/packages#8788) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Adds Equality and Hash methods to custom classes in Dart. I am still working on other languages, but this can be a standalone pr while I complete the others. fixes flutter/flutter#118087
flutter/packages@dd781d4...cf9b0f2 2025-03-20 [email protected] [pigeon] Dart Class Equality (flutter/packages#8788) If this roll has caused a breakage, revert this CL and stop the roller using the controls here: https://autoroll.skia.org/r/flutter-packages-flutter-autoroll Please CC [email protected] on the revert to ensure that a human is aware of the problem. To file a bug in Flutter: https://github.com/flutter/flutter/issues/new/choose To report a problem with the AutoRoller itself, please file a bug: https://issues.skia.org/issues/new?component=1389291&template=1850622 Documentation for the AutoRoller is here: https://skia.googlesource.com/buildbot/+doc/main/autoroll/README.md
Adds Equality and Hash methods to custom classes in Dart.
I am still working on other languages, but this can be a standalone pr while I complete the others.
fixes flutter/flutter#118087