UploadProps constructor
const
UploadProps({
- List<
String> ? allowedTypes, - int? maxFileSize,
- int? maxFiles = -1,
- String? uploadUrl,
- FileListType fileListType = FileListType.card,
- FileSource fileSource = FileSource.all,
- bool autoUpload = true,
- bool isRemoveFailFile = false,
- Future<
FileUploadModel?> customUpload()?, - Widget customAreaContent(
- VoidCallback onTap
- dynamic onFileChange(
- FileUploadModel currentFile,
- List<
FileUploadModel> selectedFiles, - String action
- dynamic onUploadProgress(
- FileUploadModel file,
- double progress
- dynamic onUploadSuccess(
- FileUploadModel file
- dynamic onUploadFailed(
- FileUploadModel file,
- 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,
});