title: Turning List<MapEntry<int, bool>> into Map<int, bool> in dart
body: <p>I want to create a map with maps the numbers from 1 to 10 to count values. Currently, I do:</p>
  <pre><code>Iterable&lt;int&gt; spread = Iterable&lt;int&gt;.generate(10);
  Iterable&lt;Future&lt;MapEntry&lt;int, bool&gt;&gt;&gt; futureEntries= spread.map((i) async {
    int level = i + 1;
    bool levelRight = await checkCountForLevel(level);
    return MapEntry(level, levelRight);
  });
  List&lt;MapEntry&lt;int, bool&gt;&gt; listOfEntries = await Future.wait(futureEntries);
  Map&lt;int, bool&gt; levelCorrect = Map.fromIterable(listOfEntries);
  </code></pre>
  <p>However, I get the error:</p>
  <blockquote>
  <p>E/flutter (29690): [ERROR:flutter/lib/ui/ui_dart_state.cc(199)] Unhandled Exception: type 'MapEntry&lt;int, bool&gt;' is not a subtype of type 'int' of 'key'</p>
  </blockquote>
  <p>Do I have to use a different method then Map.fromIterable?</p>