String data= '[1, 2, 3]';
i want to convert my string to List<int>
expectations: [1, 2, 3]
what i got using my code:
print(json.decode(data));
result: 1
dataType: int
String data= '[1, 2, 3]';
i want to convert my string to List<int>
expectations: [1, 2, 3]
what i got using my code:
print(json.decode(data));
result: 1
dataType: int