prefer_const_declarations on local variables (#14358)

This commit is contained in:
Alexandre Ardhuin
2018-02-01 07:51:26 +01:00
committed by GitHub
parent b0e17949aa
commit 841d5d7bd5
129 changed files with 791 additions and 791 deletions

View File

@@ -113,7 +113,7 @@ void main() {
testWidgets('fails with a custom description in the message', (WidgetTester tester) async {
await tester.pumpWidget(const Text('foo', textDirection: TextDirection.ltr));
final String customDescription = 'custom description';
const String customDescription = 'custom description';
TestFailure failure;
try {
expect(find.byElementPredicate((_) => false, description: customDescription), findsOneWidget);
@@ -130,7 +130,7 @@ void main() {
testWidgets('fails with a custom description in the message', (WidgetTester tester) async {
await tester.pumpWidget(const Text('foo', textDirection: TextDirection.ltr));
final String customDescription = 'custom description';
const String customDescription = 'custom description';
TestFailure failure;
try {
expect(find.byWidgetPredicate((_) => false, description: customDescription), findsOneWidget);