FileUpload constructor

const FileUpload({
  1. Key? key,
  2. VoidCallback? onTap,
  3. List<UploadedFile> files = const [],
  4. ValueChanged<UploadedFile>? onFileRemoved,
  5. String title = 'Click or drag files here to upload',
  6. String subtitle = 'Supports PDF, PNG, JPG, DOCX up to 10MB',
  7. IconData icon = Icons.cloud_upload_outlined,
  8. int? maxFiles,
  9. bool enabled = true,
})

Implementation

const FileUpload({
  super.key,
  this.onTap,
  this.files = const [],
  this.onFileRemoved,
  this.title = 'Click or drag files here to upload',
  this.subtitle = 'Supports PDF, PNG, JPG, DOCX up to 10MB',
  this.icon = Icons.cloud_upload_outlined,
  this.maxFiles,
  this.enabled = true,
});