title: How to create an empty Map in Dart
body: <p>I'm always forgetting how to create an empty map in Dart. This doesn't work:</p>
  <pre class="lang-dart prettyprint-override"><code>final myMap = Map&lt;String, dynamic&gt;{};
  </code></pre>
  <p>This is ok:</p>
  <pre class="lang-dart prettyprint-override"><code>final myMap = Map&lt;String, dynamic&gt;();
  </code></pre>
  <p>But I get a warning to use collection literals when possible.</p>
  <p><em>I'm adding my answer below so that it'll be here the next time I forget.</em></p>