e776c1ff48
The `AddConst` fix is triggered by the `PreferConstConstructors` lint and this CL updates the fix to add `const` to dot shorthand constructor invocations that can be made constant. Fixes: https://github.com/dart-lang/sdk/issues/61163 Bug: https://github.com/dart-lang/sdk/issues/60994 Change-Id: I4520c1edf807c041f38f5477f48ab1b1327732b5 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/441720 Reviewed-by: Brian Wilkerson <brianwilkerson@google.com> Commit-Queue: Kallen Tu <kallentu@google.com>