ArcaneFileUpload.documents constructor
const
ArcaneFileUpload.documents({
- int? maxSize,
- bool multiple = true,
- void onFilesSelected()?,
- void onError(
- String error
- FileUploadSize size = FileUploadSize.md,
- bool disabled = false,
- String? dropzoneText = 'Drag documents here or click to browse',
- String browseText = 'Select documents',
- String? helperText,
- String? label,
- Key? key,
Implementation
const ArcaneFileUpload.documents({
this.maxSize,
this.multiple = true,
this.onFilesSelected,
this.onError,
this.size = FileUploadSize.md,
this.disabled = false,
this.dropzoneText = 'Drag documents here or click to browse',
this.browseText = 'Select documents',
this.helperText,
this.label,
super.key,
}) : accept = const ['.pdf', '.doc', '.docx', '.txt'],
style = FileUploadStyle.dropzone;