title: How to divide all element in list at once :: DART
body: <pre><code>_num.sort();
  List&lt;int&gt; _answer = [];
  
  for (int i = 1; i &lt;= _num.last; i++) {
    // help me pls 
    if (_num % i == 0) {
    }
  </code></pre>
  <p>i'm trying to do Greatest common divisor code but i don't know how to check if int i can divide all items in the list at once and remainder == 0</p>
  <ul>
  <li>If there is a better way to do this please tell me, thank you</li>
  </ul>