NashFileUpload constructor
const
NashFileUpload({
- Key? key,
- VoidCallback? onTap,
- List<
NashUploadedFile> files = const [], - ValueChanged<
NashUploadedFile> ? 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 NashFileUpload({
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,
});