title: How to convert String to List<int> in Dart?
body: <p><code>String data= '[1, 2, 3]';</code></p>
  
  <p>i want to convert my string to <code>List&lt;int&gt;</code></p>
  
  <p>expectations: <code>[1, 2, 3]</code></p>
  
  <p>what i got using my code:</p>
  
  <p><code>print(json.decode(data));</code></p>
  
  <p>result: <code>1</code></p>
  
  <p>dataType: <code>int</code></p>