CloudinaryUploadResource constructor

const CloudinaryUploadResource({
  1. String? filePath,
  2. List<int>? fileBytes,
  3. String? uploadPreset,
  4. String? fileName,
  5. String? publicId,
  6. String? folder,
  7. CloudinaryResourceType? resourceType,
  8. Map<String, dynamic>? optParams,
  9. ProgressCallback? progressCallback,
})

Implementation

const CloudinaryUploadResource({
  this.filePath,
  this.fileBytes,
  this.uploadPreset,
  this.fileName,
  this.publicId,
  this.folder,
  this.resourceType,
  this.optParams,
  this.progressCallback,
}) : assert(filePath != null || fileBytes != null,
          'One of filePath or fileBytes must not be null');