-
Notifications
You must be signed in to change notification settings - Fork 28.5k
Roll engine to f3ff83a5db71262d240aa5337a2a9a22c73c4749. (dart roll). #21143
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
Changes since last roll: ``` 5613939 Roll src/third_party/skia 7ba1d64f0706..5f0726b01019 (12 commits) (flutter#6104) 47a1ce0 Allow embedders to set the root surface transformation. (flutter#6085) ```
https://dart-review.googlesource.com/c/sdk/+/70160 (cc @jcollins-g ) caused analyzer warnings reported in https://github.com/flutter/flutter/runs/14496912:
Those were incorrect lints which required adding appropriate |
@danrubel, looks like an issue related to the move to Fasta. Also cc'ing @a14n, who authored the lint. From the docs here: http://dart-lang.github.io/linter/lints/prefer_const_constructors_in_immutables.html, it looks like we need an |
I filed dart-lang/sdk#34297 to track this. |
This is follow-up to flutter#21143.
|
It looks like the lint is correct then, and we should change the constructors over to |
It doesn't work as there are other constraints that prevent those constructors to be const. |
OK, sounds like there are false positives with the lint, or issues where we don't actually want the constructor to be |
Once dart-lang/sdk#33408 has landed all constructors pointed out in the log could be |
For instance: AndroidView({ // ignore: prefer_const_constructors_in_immutables
Key key,
@required this.viewType,
this.onPlatformViewCreated,
this.hitTestBehavior = PlatformViewHitTestBehavior.opaque,
this.layoutDirection,
this.gestureRecognizers = const <OneSequenceGestureRecognizer> [],
this.creationParams,
this.creationParamsCodec
}) : assert(viewType != null),
assert(hitTestBehavior != null),
assert(gestureRecognizers != null),
assert(creationParams == null || creationParamsCodec != null),
super(key: key);
|
Thank you, @a14n . Makes sense. |
No description provided.