Closed
Description
Currently, new Map.fromIterable()
is very difficult to use in strong mode, because it doesn't support type propagation from the Iterable
argument to the callbacks:
Map.fromIterable(Iterable elements, {K key(element), V value(element)});
We should fix this, either using #26391 to make the constructor generic, or by making it a static method instead of a constructor.