UFilePicker constructor
const
UFilePicker({
- required ValueChanged<
List< onFilesChanged,FileData> > - Key? key,
- List<
FileData> initialFiles = const <FileData>[], - bool allowMultipleSelection = true,
- String selectFileTitle = "Select Files",
- List<
String> imageTypes = const <String>["jpg", "jpeg", "png", "gif", "bmp", "webp"], - List<
String> videoTypes = const <String>["mp4", "mov", "avi", "mkv", "webm"], - List<
String> documentTypes = const <String>["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt"], - FileType fileType = FileType.custom,
Implementation
const UFilePicker({
required this.onFilesChanged,
super.key,
this.initialFiles = const <FileData>[],
this.allowMultipleSelection = true,
this.selectFileTitle = "Select Files",
this.imageTypes = const <String>["jpg", "jpeg", "png", "gif", "bmp", "webp"],
this.videoTypes = const <String>["mp4", "mov", "avi", "mkv", "webm"],
this.documentTypes = const <String>["pdf", "doc", "docx", "xls", "xlsx", "ppt", "pptx", "txt"],
this.fileType = FileType.custom,
});