title: Dart remove square brackets and add single quotation mark
body: <p>I have a list of strings pulled from database as a string</p>
  <pre><code>[name 1, name2, name3, ...]
  </code></pre>
  <p>i am trying to convert it to this:</p>
  <pre><code>'name 1', 'name2', 'name3', '...'
  </code></pre>
  <p>so far no success.
  method with which i am getting data. The method is just fine since I am using it beforehand for other part of code.</p>
  <pre><code>  Future&lt;List&lt;String&gt;&gt; getNames() async {
      var url = _api + &quot;get_names.php?key=&quot; + _key;
      http.Response response = await http.get(url);
      var resp = jsonDecode(response.body);
      return resp.map&lt;String&gt;((m) =&gt; m['names'] as String).toList();
    }
  </code></pre>
  <p>list is pulled from database as a String.</p>
  <p>Basicaly I am using a part of formbuilder code which uses initialValue as dynamic.
  so if I set initialValue: [widget.names] and the widget.names contains 'name1','name2' it is ok
  if it is a list of string but It needs to be ofcourse single or double quoted and seperated with comma.</p>
  <p>Thank you</p>