title: How to clear a list in Dart?
body: <p>There are two options over there to clear some list</p>
  <pre><code>List&lt;String&gt; foo = ['text'];
  ...
  foo = [];
  // vs
  foo.clear();
  </code></pre>
  <p>What is the best option? And when to use these variants?</p>