NiceFileUpload constructor

const NiceFileUpload({
  1. Key? key,
  2. required void onFilesSelected(
    1. List<String> paths
    ),
  3. String? label,
  4. String hint = 'Przeciągnij pliki lub kliknij aby wybrać',
  5. List<String>? acceptedExtensions,
  6. bool multiple = true,
  7. int? maxFiles,
  8. IconData icon = Icons.cloud_upload_outlined,
  9. List<NiceUploadedFile> files = const [],
  10. void onRemoveFile(
    1. int index
    )?,
  11. double height = 120,
})

Implementation

const NiceFileUpload({
  super.key,
  required this.onFilesSelected,
  this.label,
  this.hint = 'Przeciągnij pliki lub kliknij aby wybrać',
  this.acceptedExtensions,
  this.multiple = true,
  this.maxFiles,
  this.icon = Icons.cloud_upload_outlined,
  this.files = const [],
  this.onRemoveFile,
  this.height = 120,
});