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 { ...@@ -965,9 +965,9 @@ class _DialPainter extends CustomPainter {
textDirection: textDirection, textDirection: textDirection,
onTap: label.onTap, onTap: label.onTap,
), ),
tags: <SemanticsTag>{ tags: const <SemanticsTag>{
// Used by tests to find this node. // Used by tests to find this node.
const SemanticsTag('dial-label'), SemanticsTag('dial-label'),
}, },
); );
nodes.add(node); nodes.add(node);
......
...@@ -241,7 +241,7 @@ void main() { ...@@ -241,7 +241,7 @@ void main() {
child: ABCModel( // The "inner" model child: ABCModel( // The "inner" model
a: 100 + _a, a: 100 + _a,
b: 100 + _b, b: 100 + _b,
aspects: <String>{'a'}, aspects: const <String>{'a'},
child: Center( child: Center(
child: Column( child: Column(
mainAxisSize: MainAxisSize.min, 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