uploadMultiCloudinaryImages method

Future<List<CloudinaryResponse>> uploadMultiCloudinaryImages(
  1. List<File?> files
)

Implementation

Future<List<CloudinaryResponse>> uploadMultiCloudinaryImages(
    List<File?> files) {
  Future<List<CloudinaryResponse>> uploadedImages = cloudinary.multiUpload(
    files
        .map((file) async => CloudinaryFile.fromFile(file!.path,
            resourceType: CloudinaryResourceType.Auto))
        .toList(),
  );

  return uploadedImages;
}