-1
List<String> _productIds = widget.productIds;
String _storeId = widget.storeid;
String jsonProductId = jsonEncode(_productIds); //that give me[\"abc\",\"abc\",\"abc\"]
John Joe
  • 12,412
  • 16
  • 70
  • 135

1 Answers1

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