pickFiles static method
Future<List<XFile>?>
pickFiles(
{ - Set<String> mimeTypes = const {},
- LiveList<XFile>? files,
- bool throwOnMimeTypeNotMatch = false,
})
Implementation
static Future<List<XFile>?> pickFiles(
{Set<String> mimeTypes = const {}, LiveList<XFile>? files, bool throwOnMimeTypeNotMatch = false}) =>
RawDropView.pickFiles(mimeTypes: mimeTypes, multiple: true, throwOnMimeTypeNotMatch: throwOnMimeTypeNotMatch)
.toList()
.then((value) {
final result = value.isNotEmpty ? value : null;
if (result != null) files?.setTo(result);
return result;
});