Unverified Commit 8707f1f3 authored by Phil Quitslund's avatar Phil Quitslund Committed by GitHub

make literals const for @immutable constructors (#29619)

parent b3046a6c
......@@ -965,9 +965,9 @@ class _DialPainter extends CustomPainter {
textDirection: textDirection,
onTap: label.onTap,
),
tags: <SemanticsTag>{
tags: const <SemanticsTag>{
// Used by tests to find this node.
const SemanticsTag('dial-label'),
SemanticsTag('dial-label'),
},
);
nodes.add(node);
......
......@@ -241,7 +241,7 @@ void main() {
child: ABCModel( // The "inner" model
a: 100 + _a,
b: 100 + _b,
aspects: <String>{'a'},
aspects: const <String>{'a'},
child: Center(
child: Column(
mainAxisSize: MainAxisSize.min,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment