pickMultiFile method
See FilePicker.pickFiles
.
Pick multiple files.
On desktop and mobile platforms, this function uses the path to read the file.
allowWebStream
enables reading of streamed web files but only once.
Implementation
Future<List<XFile>> pickMultiFile({
String? dialogTitle,
String? initialDirectory,
FileType type = FileType.any,
List<String>? allowedExtensions,
OnFileLoading? onFileLoading,
bool allowCompression = false,
bool allowWebStream = false,
bool lockParentWindow = false,
}) async {
return await _pick(
dialogTitle: dialogTitle,
initialDirectory: initialDirectory,
type: type,
allowedExtensions: allowedExtensions,
onFileLoading: onFileLoading,
allowCompression: allowCompression,
allowMultiple: true,
allowWebStream: allowWebStream,
lockParentWindow: lockParentWindow,
);
}