From 9efb168521320a026b51552a735aaa2f51c41bd4 Mon Sep 17 00:00:00 2001 From: Bob Nystrom Date: Thu, 18 Aug 2016 17:14:52 -0700 Subject: [PATCH] Fix an incorrect covariant function type. (#5492) The type of rejects should be List to match the type that DragTarget expects. Since the function doesn't use rejects anyway, there's no need to tighten the type. Fixes one of the strong_mode_static_type_error errors that is currently being ignored. --- packages/flutter/test/widget/draggable_test.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/flutter/test/widget/draggable_test.dart b/packages/flutter/test/widget/draggable_test.dart index 51de601e45..3e66448a2c 100644 --- a/packages/flutter/test/widget/draggable_test.dart +++ b/packages/flutter/test/widget/draggable_test.dart @@ -835,7 +835,7 @@ void main() { } ), new DragTarget( - builder: (BuildContext context, List data, List rejects) { + builder: (BuildContext context, List data, List rejects) { return new IgnorePointer( child: new Container( height: 100.0,