title: List of tuples in flutter/dart
body: <p>I would like to have a list of tuples in dart/flutter, loop over them and read the first and second variable. There is a <a href="https://pub.dev/packages/tuple" rel="noreferrer">pub.dev package</a> that creates a tuple in flutter.
  Is there another way in dart? Do I need to use a class to create a tuple like the flutter package does?</p>
  <p>I began to create an example in <a href="https://dartpad.dev/" rel="noreferrer">dart pad</a></p>
  <pre><code>void main() {
    List testList = [(&quot;a&quot;,1),(&quot;b&quot;,2),(&quot;c&quot;,3),(&quot;d&quot;,4),(&quot;e&quot;,5)];
    
    
    for (var i = 0; i &lt; 5; i++) {
      print('hello $i');
      currentItem = testList[i];
  
    }
  }
  </code></pre>