ArcaneFileUpload.images constructor

const ArcaneFileUpload.images({
  1. int? maxSize,
  2. bool multiple = true,
  3. void onFilesSelected(
    1. List<UploadedFile>
    )?,
  4. void onError(
    1. String error
    )?,
  5. FileUploadSize size = FileUploadSize.md,
  6. bool disabled = false,
  7. String? dropzoneText = 'Drag images here or click to browse',
  8. String browseText = 'Select images',
  9. String? helperText,
  10. String? label,
  11. Key? key,
})

Implementation

const ArcaneFileUpload.images({
  this.maxSize,
  this.multiple = true,
  this.onFilesSelected,
  this.onError,
  this.size = FileUploadSize.md,
  this.disabled = false,
  this.dropzoneText = 'Drag images here or click to browse',
  this.browseText = 'Select images',
  this.helperText,
  this.label,
  super.key,
})  : accept = const ['image/*'],
      style = FileUploadStyle.dropzone;