-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[rfw] Enable subscribing to the root of a DynamicContent #5848
Conversation
@johnmccutchan is this something you still need, or did you find another solution? |
This is no longer needed by my tool but it does seem like something that should be supported for consistency reasons. |
Would you like to be the reviewer, since you have context? :-) |
@@ -12,6 +12,9 @@ import 'package:flutter/foundation.dart' show objectRuntimeType; | |||
import '../dart/model.dart'; | |||
|
|||
/// Signature for the callback passed to [DynamicContent.subscribe]. | |||
/// | |||
/// Do not modify the provided value (e.g. if it is a map or list). Doing so |
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.
Should you pass the map/list wrapped in an UnmodifiableFoo wrapper so that the user can't manipulate it?
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 would if it was a free abstraction, but given that it's standard practice in Flutter to pass around lists and maps that aren't supposed to be modified, I don't see much point.
flutter/packages@25abb5d...5b48c44 2024-01-30 ian@hixie.ch [rfw] Enable subscribing to the root of a DynamicContent (flutter/packages#5848) 2024-01-30 10687576+bparrishMines@users.noreply.github.com [pigeon] Adds ProxyApi to AST generation (flutter/packages#5861) 2024-01-30 stuartmorgan@google.com [tool] Exempt federated impl examples from CHANGELOG (flutter/packages#6018) 2024-01-30 engine-flutter-autoroll@skia.org Manual roll Flutter from 2f6fdf2 to ace9181 (57 revisions) (flutter/packages#6013) 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 flutter-ecosystem@google.com,rmistry@google.com 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
fixes flutter/flutter#141069
Pre-launch Checklist
dart format
.)[shared_preferences]
pubspec.yaml
with an appropriate new version according to the pub versioning philosophy, or this PR is exempt from version changes.CHANGELOG.md
to add a description of the change, following repository CHANGELOG style.///
).