List<Image> convertToImgList(Future<List<Image>> listimg) {
var li = listimg.asStream();
Future<int> future = listimg.asStream().length;
return images;
}
Hi,
I want to convert Future List Image to List Image in flutter.
Anyone knows how it can be done?
2
Answers
It is future so you much wait for it by
await
:Convert from
Future<List<Image>>
Convert from
List<Future<Image>>