List<String> _productIds = widget.productIds;
String _storeId = widget.storeid;
String jsonProductId = jsonEncode(_productIds); //that give me[\"abc\",\"abc\",\"abc\"]
Asked
Active
Viewed 59 times
-1

John Joe
- 12,412
- 16
- 70
- 135

Kishan Boricha
- 31
- 2
-
1what you want to achieve? – John Joe Dec 17 '20 at 05:32
1 Answers
0
I guess you want to pass comma separated String into http request. you can try converting the list to comma separated string.
List<String> _productIds = widget.productIds;
String requestString = _productIds .join(', ');
print(s);

abdulec90
- 262
- 3
- 11