Clean up the bindings APIs#86438
Merged
fluttergithubbot merged 5 commits intoflutter:masterfrom Jul 14, 2021
Merged
Conversation
Contributor
Author
|
cc @goderbauer for review Gardeners: In case this causes any devicelab failures, please do not hesitate to revert it. Thanks! |
goderbauer
approved these changes
Jul 14, 2021
Member
There was a problem hiding this comment.
Maybe add a unit test to cover this case?
Contributor
|
This pull request is not suitable for automatic merging in its current state.
|
* Add more documentation. * Make premature binding accesses have better runtime errors. * Make accesses to `instance` not required `!`. * Rationalize our "ensureInitialized" etc logic.
renyou
added a commit
that referenced
this pull request
Jul 15, 2021
Hixie
added a commit
to Hixie/flutter
that referenced
this pull request
Feb 3, 2022
* Add more documentation. * Make premature binding accesses have better runtime errors. * Make accesses to `instance` not required `!`. * Rationalize our "ensureInitialized" etc logic. Fixes flutter#64830. Most of these changes were done using `dart fix --apply`, but they have been squashed into one commit for easier merging. To see previous reviews of this PR, see flutter#83843, flutter#86388, flutter#86438, and flutter#89451.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
instancenot required!.Fixes #64830.
History: This was first landed in #83843 (which was reverted in #86386), then landed in #86388 (which was reverted in #86388). Relative to the last time this landed, this adds some defensive code in
timeDilation's setter to make it not depend on the scheduler binding being initialized.Pre-launch Checklist
///).If you need help, consider asking for advice on the #hackers-new channel on Discord.