title: Convert an arbitrarily long hexadecimal string to a number in Dart?
body: <p>I need to convert a string of 8-character hexadecimal substrings into a list of integers. </p>
  
  <p>For example, I might have the string</p>
  
  <pre><code>001479B70054DB6E001475B3
  </code></pre>
  
  <p>which consists of the following substrings</p>
  
  <pre><code>001479B7    // 1341879 decimal
  0054DB6E    // 5561198 decimal
  001475B3    // 1340851 decimal
  </code></pre>
  
  <p>I'm currently using <code>convert.hex</code> to first convert the strings into a list of 4 integers (because <code>convert.hex</code> only handles parsing 2-character hex strings) and then adding/multiplying those up:</p>
  
  <pre><code>String tmp;
  for(int i=0; i&lt;=myHexString.length-8; i+=8){
    tmp = myHexString.substring(i, i+8);
    List&lt;int&gt; ints = hex.decode(tmp);
    int dec = ints[3]+(ints[2]*256+(ints[1]*65536)+(ints[0]*16777216));
  }
  </code></pre>
  
  <p>Is there a more efficient way to do this?</p>