FileUpload constructor
const
FileUpload({
- Key? key,
- VoidCallback? onTap,
- List<
UploadedFile> files = const [], - ValueChanged<
UploadedFile> ? onFileRemoved, - String title = 'Click or drag files here to upload',
- String subtitle = 'Supports PDF, PNG, JPG, DOCX up to 10MB',
- IconData icon = Icons.cloud_upload_outlined,
- int? maxFiles,
- 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,
});