From 0220412c53f9d7e07609707b376ba5e26cc6b56a Mon Sep 17 00:00:00 2001 From: Amir Hardon Date: Fri, 28 Dec 2018 14:05:19 -0800 Subject: [PATCH] Fix analyzer "prefer const" warning. (#25854) --- dev/benchmarks/macrobenchmarks/lib/src/cull_opacity.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dev/benchmarks/macrobenchmarks/lib/src/cull_opacity.dart b/dev/benchmarks/macrobenchmarks/lib/src/cull_opacity.dart index 158862c86c..c42f2e123d 100644 --- a/dev/benchmarks/macrobenchmarks/lib/src/cull_opacity.dart +++ b/dev/benchmarks/macrobenchmarks/lib/src/cull_opacity.dart @@ -13,7 +13,7 @@ class _CullOpacityPageState extends State with SingleTickerProv void initState() { super.initState(); - _controller = AnimationController(vsync: this, duration: Duration(seconds: 2)); + _controller = AnimationController(vsync: this, duration: const Duration(seconds: 2)); _offsetY = Tween(begin: 0, end: -1000.0).animate(_controller)..addListener((){ setState(() {}); });