title: FLUTTER How to get variable based on passed string name?
body: <p>I have stored variables in a class with their code names. </p>
  
  <p>Suppose I want to get XVG from that class, I want to do</p>
  
  <pre><code>String getIconsURL(String symbol) {
  
    var list = new URLsList();
  
    //symbol = 'XVG'
  
    return list.(symbol);
  }
  
  class URLsList{
  
  var XVG = 'some url';
  var BTC = 'some url';
  
  }
  </code></pre>
  
  <p>Can someone help me achieve this or provide me with a better solution?</p>