CloudinaryPublic class

The base class for this package

Constructors

CloudinaryPublic(String _cloudName, String _uploadPreset, {bool cache = false, Dio? dioClient})

Properties

cache bool
Defaults to false
final
dioClient → Dio?
The provided Dio client to be used to upload files
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getImage(String publicId) CloudinaryImage
multiUpload(List<Future<CloudinaryFile>> files, {String? uploadPreset, ProgressCallback? onProgress, void currentUploadIndex(int index)?}) Future<List<CloudinaryResponse>>
Upload multiple files using simultaneously uploadFutureFile
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited
uploadFile(CloudinaryFile file, {String? uploadPreset, ProgressCallback? onProgress}) Future<CloudinaryResponse>
Upload the cloudinary file to using the public api Override the default upload preset (when CloudinaryPublic is instantiated) with this one (if specified).
uploadFileInChunks(CloudinaryFile file, {String? uploadPreset, ProgressCallback? onProgress, int chunkSize = 20000000}) Future<CloudinaryResponse?>
Upload file in chunks default chunk size is 20 MB chunk size must be less than 20 MB and greater than 5 MB
uploadFiles(List<CloudinaryFile> files, {String? uploadPreset}) Future<List<CloudinaryResponse>>
Upload multiple files together
uploadFutureFile(Future<CloudinaryFile> file, {String? uploadPreset, ProgressCallback? onProgress}) Future<CloudinaryResponse>
Upload the file using uploadFile

Operators

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