UploadProps constructor

const UploadProps({
  1. List<String>? allowedTypes,
  2. int? maxFileSize,
  3. int? maxFiles = -1,
  4. String? uploadUrl,
  5. FileListType fileListType = FileListType.card,
  6. FileSource fileSource = FileSource.all,
  7. bool autoUpload = true,
  8. bool isRemoveFailFile = false,
  9. Future<FileUploadModel?> customUpload(
    1. String filePath,
    2. dynamic onProgress(
      1. double
      )
    )?,
  10. Widget customAreaContent(
    1. VoidCallback onTap
    )?,
  11. dynamic onFileChange(
    1. FileUploadModel currentFile,
    2. List<FileUploadModel> selectedFiles,
    3. String action
    )?,
  12. dynamic onUploadProgress(
    1. FileUploadModel file,
    2. double progress
    )?,
  13. dynamic onUploadSuccess(
    1. FileUploadModel file
    )?,
  14. dynamic onUploadFailed(
    1. FileUploadModel file,
    2. String error
    )?,
})

Implementation

const UploadProps({
  this.allowedTypes,
  this.maxFileSize,
  this.maxFiles = -1,
  this.uploadUrl,
  this.fileListType = FileListType.card,
  this.fileSource = FileSource.all,
  this.autoUpload = true,
  this.isRemoveFailFile = false,
  this.customUpload,
  this.customAreaContent,
  this.onFileChange,
  this.onUploadProgress,
  this.onUploadSuccess,
  this.onUploadFailed,
});