Fix a bug that only showed up in checked mode (#1741)
Fix a bug that only showed up in checked mode (#1741)

We were passing an Iterable in place of a List, but an implicit cast
was hiding it from analysis and it worked in practice in unchecked
mode.
dart-lang/pub,dart-lang/pub