title: How to replace country code to flag emoji in flutter
body: <p>i have a list of countries with their sortname/countrycode in json format, which will be called in flutter. Is there a way i can convert all this code with their flag emojis?</p>
  
  <p>For example: "sortname": "PL" will gives  (idk if you guys can see the flag or not)</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>{
   "sortname": "PL",
   "name": "Poland",
  }, {
   "sortname": "PT",
   "name": "Portugal",
  }, {
   "sortname": "PR",
   "name": "Puerto Rico",
  }, {
   "sortname": "QA",
   "name": "Qatar",
  }, {
   "sortname": "RE",
   "name": "Reunion",
  }, {
   "sortname": "RO",
   "name": "Romania",
  }, {
   "sortname": "RU",
   "name": "Russia",
  },</code></pre>
  </div>
  </div>
  </p>