Roll engine to f3ff83a5db71262d240aa5337a2a9a22c73c4749. (dart roll).#21143
Roll engine to f3ff83a5db71262d240aa5337a2a9a22c73c4749. (dart roll).#21143aam merged 4 commits intoflutter:masterfrom
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.