Cloudinary class

Cloudinary SDK object to access the cloudinary API.

Constructors

Cloudinary.basic({String? apiUrl, required String cloudName})
Use this constructor when you don't need to make authorized requests to Cloudinary api, like when you just need to do unsigned image upload. Recommended for client side apps.
factory
Cloudinary.full({String? apiUrl, required String apiKey, required String apiSecret, required String cloudName})
Use this constructor when you need full control over Cloudinary api like when you need to do authorized/signed api requests. Recommended for server side apps.
factory

Properties

apiKey String
no setter
apiSecret String
no setter
cloudName String
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

deleteFile({String? publicId, String? url, CloudinaryImage? cloudinaryImage, CloudinaryResourceType? resourceType, bool? invalidate, Map<String, dynamic>? optParams}) Future<CloudinaryResponse>
deleteFiles({List<String>? publicIds, List<String>? urls, List<CloudinaryImage>? cloudinaryImages, String? prefix, bool? all, CloudinaryResourceType? resourceType, CloudinaryDeliveryType? deliveryType, bool? invalidate, Map<String, dynamic>? optParams}) Future<CloudinaryResponse>
deleteResource({String? publicId, String? url, CloudinaryImage? cloudinaryImage, CloudinaryResourceType? resourceType, bool? invalidate, Map<String, dynamic>? optParams}) Future<CloudinaryResponse>
Deletes a file of resourceType with publicId from your specified cloudName By using the Destroy method of cloudinary api. Check here https://cloudinary.com/documentation/image_upload_api_reference#destroy_method
deleteResources({List<String>? publicIds, List<String>? urls, List<CloudinaryImage>? cloudinaryImages, String? prefix, bool? all, CloudinaryResourceType? resourceType, CloudinaryDeliveryType? deliveryType, bool? invalidate, Map<String, dynamic>? optParams}) Future<CloudinaryResponse>
Deletes a list of files of resourceType represented by it's publicIds from your specified cloudName. Alternatively you can set a prefix to delete all files where the public_id starts with the prefix or you can also set all to delete all files of resourceType By using the Delete Resources method from cloudinary Admin API. Check here https://cloudinary.com/documentation/admin_api#delete_resources
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
unsignedUploadResource(CloudinaryUploadResource resource) Future<CloudinaryResponse>
Uploads a file of resourceType with fileName to a folder in your specified cloudName using a uploadPreset with no need to specify an apiKey nor apiSecret.
unsignedUploadResources(List<CloudinaryUploadResource> resources) Future<List<CloudinaryResponse>>
This function uploads multiples files by calling uploadFile repeatedly
uploadFile({String? filePath, List<int>? fileBytes, String? publicId, String? fileName, String? folder, CloudinaryResourceType? resourceType, Map<String, dynamic>? optParams, ProgressCallback? progressCallback}) Future<CloudinaryResponse>
Uploads a file of resourceType with fileName to a folder in your specified cloudName
uploadFiles({List<String>? filePaths, List<List<int>>? filesBytes, String? folder, CloudinaryResourceType? resourceType, Map<String, dynamic>? optParams}) Future<List<CloudinaryResponse>>
This function uploads multiples files by calling uploadFile repeatedly
uploadResource(CloudinaryUploadResource resource) Future<CloudinaryResponse>
Uploads a file of resourceType with fileName to a folder in your specified cloudName
uploadResources(List<CloudinaryUploadResource> resources) Future<List<CloudinaryResponse>>
This function uploads multiples files by calling uploadFile repeatedly

Operators

operator ==(Object other) bool
The equality operator.
inherited