getProductImages method
Implementation
@override
Future<List<String>> getProductImages(String details) async {
var res = await _get("/orders/productimage", {"details": details});
if (res == null) {
return [];
}
var response = jsonDecode(res.body);
try {
print(response.toString());
List<String> images = response['images'].whereType<String>().toList();
if (images == null || images.isEmpty) {
return [];
}
// print(completion);
return images;
} catch (error) {
print(error.toString());
return [];
}
}