getRecentImages static method
Get the recent 20 image from storage
Implementation
static Future<List<ImageModel>> getRecentImages() async {
final recentAssetEntity = await getRecentAssetEntity();
int length = recentAssetEntity.length;
List<ImageModel> images = [];
for (int i = 0; i < length; i++) {
final assetEntity = recentAssetEntity[i];
final file = await assetEntity.file;
images.add(ImageModel(type: Type.image, file: file!));
}
return images;
}