From 51158c9177defd803599b0c730dd220c9f69a418 Mon Sep 17 00:00:00 2001 From: Michael R Fairhurst Date: Thu, 1 Feb 2018 05:09:07 -0800 Subject: [PATCH] Fix passing "void" into "dynamic" to future-proof new changes. (#14366) Using a void list literal in this case is valid and correct, and will be required for dart 2. Note: void can be inferred here, but followed the lints to write it explicitly even though that's arguably a bit weird in this case and less backwards compatible. --- packages/flutter/test/material/animated_icons_test.dart | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/flutter/test/material/animated_icons_test.dart b/packages/flutter/test/material/animated_icons_test.dart index 86b6105403..c7d03fb04b 100644 --- a/packages/flutter/test/material/animated_icons_test.dart +++ b/packages/flutter/test/material/animated_icons_test.dart @@ -161,7 +161,7 @@ void main() { final CustomPaint customPaint = tester.widget(find.byType(CustomPaint)); final MockCanvas canvas = new MockCanvas(); customPaint.painter.paint(canvas, const Size(48.0, 48.0)); - verifyInOrder([ + verifyInOrder([ canvas.rotate(math.pi), canvas.translate(-48.0, -48.0) ]); @@ -208,7 +208,7 @@ void main() { final CustomPaint customPaint = tester.widget(find.byType(CustomPaint)); final MockCanvas canvas = new MockCanvas(); customPaint.painter.paint(canvas, const Size(48.0, 48.0)); - verifyInOrder([ + verifyInOrder([ canvas.rotate(math.pi), canvas.translate(-48.0, -48.0) ]);