Fix an incorrect covariant function type. (#5492)

The type of rejects should be List<dynamic> 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.
This commit is contained in:
Bob Nystrom 2016-08-18 17:14:52 -07:00 committed by GitHub
parent 83ab5f8345
commit 9efb168521

View File

@ -835,7 +835,7 @@ void main() {
}
),
new DragTarget<ExtendedDragTargetData>(
builder: (BuildContext context, List<ExtendedDragTargetData> data, List<ExtendedDragTargetData> rejects) {
builder: (BuildContext context, List<ExtendedDragTargetData> data, List<dynamic> rejects) {
return new IgnorePointer(
child: new Container(
height: 100.0,